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

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