template: move categories and time up

This commit is contained in:
gutmet 2023-04-08 17:21:10 +02:00
parent ad117af7a8
commit 8245b95130

View File

@ -70,8 +70,25 @@ const defaultTemplate string = `<!DOCTYPE html>
<div class="content">
{{.Content}}
{{if .Categories}}
<div class="categories">
Posted in
{{range $index, $category := .Categories}}
<a href="{{$category.Path}}">{{$category.Name}}</a>
{{end}}
</div>
{{end}}
{{if .Time}}
<div class="time">
{{.Time}} UTC
</div>
{{end}}
{{if .CategoryListings}}
{{if .Blogpost}}
<div class="relatedListing">
@ -98,25 +115,11 @@ Related posts:
</div>
{{end}}
</div>
{{if .Categories}}
<div class="categories">
Posted in
{{range $index, $category := .Categories}}
<a href="{{$category.Path}}">{{$category.Name}}</a>
{{end}}
</div>
{{end}}
{{if .Time}}
<div class="time">
{{.Time}} UTC
</div>
{{end}}
{{if or .Previous .Later}}
<div class="blognavigation">
{{if .Previous}}