Add the explanation for the Quotes section.

This commit is contained in:
Kazuhiro MUSASHI 2019-04-14 12:48:52 +08:00
parent 105c1017b0
commit 8bbe6b7223
1 changed files with 41 additions and 0 deletions

41
layouts/quotes/list.html Normal file
View File

@ -0,0 +1,41 @@
{{ partial "header.html" . }}
<!-- Main Section Layout
-->
<main id="list" role="main">
<div class="article-header light-gray"><h1>{{ .Title }}</h1></div>
{{.Content}}
<br>
{{ $paginator := .Paginate (where .Data.Pages "Type" "quotes") }}
{{ range $paginator.Pages }}
<div class="summary">
<h2><a href="{{ .Permalink }}">{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}</a></h2>
<div class="meta">
{{ .Date.Format "Jan 2, 2006" }} &nbsp;
{{ range .Params.categories }}
#<a href="/categories/{{ . | urlize }}">{{ . }}</a>&nbsp;
{{ end }}
{{ range .Params.tags }}
#<a href="/tags/{{ . | urlize }}">{{ . }}</a>&nbsp;
{{ end }}: {{ .Description }}
</div>
</div>
{{ end }}
</main>
<!-- Paginator Section Layout
-->
<nav>
{{ $paginator := .Paginate (where .Data.Pages "Type" "quotes") }}
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}">Prev</a>
{{ end }}
<span class="">Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span>
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL }}">Next</a>
{{ end }}
</nav>
{{ partial "footer.html" . }}