mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2024-11-29 05:23:50 +01:00
46 lines
1.1 KiB
HTML
46 lines
1.1 KiB
HTML
{{ define "main" }}
|
|
{{ if .Content }}
|
|
<article>
|
|
{{ .Content -}}
|
|
</article>
|
|
{{ end }}
|
|
<div class="posts">
|
|
{{ range .Paginator.Pages }}
|
|
<div class="post-meta">
|
|
{{ if .Params.Date }}
|
|
<span>
|
|
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
|
<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>
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ partial "pagination.html" . }}
|
|
{{ end }}
|