npqhugo/layouts/_default/list.html

26 lines
868 B
HTML
Raw Permalink Normal View History

2020-04-11 19:28:48 +08:00
{{ define "main" }}
<div class="section">
<dev class="section-title">{{.Section}}</dev>
2020-05-15 02:01:28 +08:00
{{ range $index, $element := .Paginator.Pages }}
2020-04-11 19:28:48 +08:00
<div class="list-item">
2021-12-30 01:33:10 +08:00
<a class="entry-title" href="{{ .Permalink }}">{{ .Title }}</a>
2020-04-11 19:28:48 +08:00
{{$page := .}}
{{with .Description}}
<p>{{.}}</p>
{{end}}
<div class="meta">
{{with .Date}}
<i class="far fa-calendar-alt"></i> {{.Format "Jan 2 2006"}}
{{end}}
<br>
{{with .Params.tags}}
<i class="fas fa-tags"></i>
Tags: {{ delimit . ", " }}
{{end}}
</div>
</div>
{{end}}
</div>
2020-05-15 02:01:28 +08:00
{{ partial "pagination.html" $ }}
{{end}}