change bootstrap template to correspond to normal one
This commit is contained in:
parent
3e86c03557
commit
7d8ce61d05
|
@ -182,6 +182,9 @@ var bsStarterTemplate string = `
|
||||||
{{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">
|
||||||
|
@ -196,6 +199,28 @@ var bsStarterTemplate string = `
|
||||||
|
|
||||||
<div class="content">
|
<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>
|
</div>
|
||||||
|
|
||||||
{{if .Categories}}
|
{{if .Categories}}
|
||||||
|
@ -222,11 +247,6 @@ var bsStarterTemplate string = `
|
||||||
<a href="{{.Later}}"><h2>Later--></h2></a>
|
<a href="{{.Later}}"><h2>Later--></h2></a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{if .PostCollection}}
|
|
||||||
<a href="/{{.Blogdir}}/categories.html"><h2>Categories</h2></a>
|
|
||||||
<a href="/{{.Blogdir}}/timeline.html"><h2>Timeline</h2></a>
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user