vugo/layouts/_default/list.html

46 lines
1.1 KiB
HTML
Raw Normal View History

2022-08-18 14:17:23 +02:00
{{ define "main" }}
{{ if .Content }}
2022-08-10 15:27:44 +02:00
<article>
2022-08-18 14:17:23 +02:00
{{ .Content -}}
2022-08-10 15:27:44 +02:00
</article>
2022-08-18 14:17:23 +02:00
{{ end }}
<div class="posts">
{{ range .Paginator.Pages }}
<div class="post-meta">
{{ if .Params.Date }}
<span>
2022-09-18 11:47:00 +02:00
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
2022-08-18 14:17:23 +02:00
<span> - </span>
<span class="post-date">
{{ .Date.Format "2006-01-02" }}
{{ if $.Site.Params.showLastUpdated }}
{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]
{{ end }}
</span>
{{ end }}
{{ with .Params.Author }}
<span> - </span>
<span class="post-author">{{ . }}</span>
{{ end }}
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
<span class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</span>
{{ end }}
</span>
{{ if .Params.tags }}
<span class="post-tags">
{{ range .Params.tags }}
#<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a>&nbsp;
{{ end }}
</span>
{{ end }}
</div>
</div>
{{ end }}
{{ partial "pagination.html" . }}
{{ end }}