simple template: put category and timeline links first

This commit is contained in:
gutmet 2019-05-26 17:53:05 +02:00
parent 662a12c608
commit 0773b45a4a

View File

@ -29,7 +29,9 @@ var defaultTemplate string = `<!DOCTYPE html>
{{end}}
{{if .Description}}<h3>{{.Description}}</h3>{{end}}
{{if .PostCollection }}
{{if .PostCollection}}
<h2><a href="/{{.Blogdir}}/categories.html">Categories</a> &nbsp; &nbsp; <a href="/{{.Blogdir}}/timeline.html">Timeline</a></h2>
{{range $index, $post := .PostCollection}}
<div class="blogpost">
<a href ="{{$post.Link}}" class="linktopost">
@ -71,11 +73,6 @@ var defaultTemplate string = `<!DOCTYPE html>
{{end}}
</div>
{{end}}
{{if .PostCollection}}
<a href="/{{.Blogdir}}/categories.html"><h2>Categories</h2></a>
<a href="/{{.Blogdir}}/timeline.html"><h2>Timeline</h2></a>
{{end}}
</body>
</html>
`