templates: fix mistake of putting <h2> inside <a>

This commit is contained in:
gutmet 2022-07-09 22:37:52 +02:00
parent e250716074
commit ae9f528943

View File

@ -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>&lt;--Previous</h2></a> <h2><a href="{{.Previous}}">&lt;--Previous</a></h2>
{{end}} {{end}}
{{if .Later}} {{if .Later}}
<a href="{{.Later}}"><h2>Later--&gt;</h2></a> <h2><a href="{{.Later}}"><h2>Later--&gt;</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>&lt;--Previous</h2></a> <h2><a href="{{.Previous}}">&lt;--Previous</a></h2>
{{end}} {{end}}
{{if .Later}} {{if .Later}}
<a href="{{.Later}}"><h2>Later--&gt;</h2></a> <h2><a href="{{.Later}}"><h2>Later--&gt;</a></h2>
{{end}} {{end}}
</div> </div>
{{end}} {{end}}