templates: fix mistake of putting <h2> inside <a>
This commit is contained in:
parent
e250716074
commit
ae9f528943
|
@ -59,11 +59,9 @@ var defaultTemplate string = `<!DOCTYPE html>
|
||||||
|
|
||||||
{{range $index, $post := .PostCollection}}
|
{{range $index, $post := .PostCollection}}
|
||||||
<div class="blogpost">
|
<div class="blogpost">
|
||||||
<a href ="{{$post.Link}}" class="linktopost">
|
|
||||||
<h1>
|
<h1>
|
||||||
{{$post.Title}}
|
<a href ="{{$post.Link}}" class="linktopost">{{$post.Title}}</a>
|
||||||
</h1>
|
</h1>
|
||||||
</a>
|
|
||||||
{{$post.Content}}
|
{{$post.Content}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -117,10 +115,10 @@ var defaultTemplate string = `<!DOCTYPE html>
|
||||||
{{if or .Previous .Later}}
|
{{if or .Previous .Later}}
|
||||||
<div class="blognavigation">
|
<div class="blognavigation">
|
||||||
{{if .Previous}}
|
{{if .Previous}}
|
||||||
<a href="{{.Previous}}"><h2><--Previous</h2></a>
|
<h2><a href="{{.Previous}}"><--Previous</a></h2>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Later}}
|
{{if .Later}}
|
||||||
<a href="{{.Later}}"><h2>Later--></h2></a>
|
<h2><a href="{{.Later}}"><h2>Later--></a></h2>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -187,11 +185,9 @@ var bsStarterTemplate string = `
|
||||||
|
|
||||||
{{range $index, $post := .PostCollection}}
|
{{range $index, $post := .PostCollection}}
|
||||||
<div class="blogpost">
|
<div class="blogpost">
|
||||||
<a href ="{{$post.Link}}" class="linktopost">
|
|
||||||
<h1>
|
<h1>
|
||||||
{{$post.Title}}
|
<a href ="{{$post.Link}}" class="linktopost">{{$post.Title}}</a>
|
||||||
</h1>
|
</h1>
|
||||||
</a>
|
|
||||||
{{$post.Content}}
|
{{$post.Content}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -241,10 +237,10 @@ var bsStarterTemplate string = `
|
||||||
{{if or .Previous .Later}}
|
{{if or .Previous .Later}}
|
||||||
<div class="blognavigation">
|
<div class="blognavigation">
|
||||||
{{if .Previous}}
|
{{if .Previous}}
|
||||||
<a href="{{.Previous}}"><h2><--Previous</h2></a>
|
<h2><a href="{{.Previous}}"><--Previous</a></h2>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Later}}
|
{{if .Later}}
|
||||||
<a href="{{.Later}}"><h2>Later--></h2></a>
|
<h2><a href="{{.Later}}"><h2>Later--></a></h2>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user