template: move categories and time up
This commit is contained in:
parent
ad117af7a8
commit
8245b95130
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user