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"> <div class="content">
{{.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 .CategoryListings}}
{{if .Blogpost}} {{if .Blogpost}}
<div class="relatedListing"> <div class="relatedListing">
@ -98,25 +115,11 @@ Related posts:
</div> </div>
{{end}} {{end}}
</div> </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}} {{if or .Previous .Later}}
<div class="blognavigation"> <div class="blognavigation">
{{if .Previous}} {{if .Previous}}