simple template: put category and timeline links first
This commit is contained in:
parent
662a12c608
commit
0773b45a4a
|
@ -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> <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>
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user