change bootstrap template to correspond to normal one

This commit is contained in:
gutmet 2021-06-26 17:25:20 +02:00
parent 3e86c03557
commit 7d8ce61d05

View File

@ -182,6 +182,9 @@ var bsStarterTemplate string = `
{{if .Description}}<h3>{{.Description}}</h3>{{end}}
{{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">
@ -195,7 +198,29 @@ var bsStarterTemplate string = `
{{end}}
<div class="content">
{{.Content}}
{{.Content}}
{{if .CategoryListings}}
<div class="categoryListing">
<dl style="padding-bottom:150em;">
{{range $i, $listing := .CategoryListings -}}
<dt><a name="{{$listing.ASCIIName}}" class="categoryListing">{{$listing.Name}}</a></dt>
{{range $j, $post := $listing.Posts -}}
<dd><a href="{{$post.Link}}">{{$post.Meta.Title}}</a></dd>
{{end}}
{{end}}
</dl>
</div>
{{end}}
{{if .TimelineListing}}
<div class="timelineListing">
{{range $i, $post := .TimelineListing -}}
{{$post.Meta.FormattedDate}}: <a href="{{$post.Link}}" class="timelineListing">{{$post.Meta.Title}}</a><br>
{{end}}
</div>
{{end}}
</div>
{{if .Categories}}
@ -222,11 +247,6 @@ var bsStarterTemplate string = `
<a href="{{.Later}}"><h2>Later--&gt;</h2></a>
{{end}}
</div>
{{end}}
{{if .PostCollection}}
<a href="/{{.Blogdir}}/categories.html"><h2>Categories</h2></a>
<a href="/{{.Blogdir}}/timeline.html"><h2>Timeline</h2></a>
{{end}}
</div>