Fix ordering of conditionals to allow both single page site mode and normal blog mode. Add semantic tags

This commit is contained in:
Justin Nguyen
2020-12-22 13:13:02 -08:00
parent 896dbba4cf
commit a667d2d6db
3 changed files with 60 additions and 31 deletions

View File

@@ -6,7 +6,7 @@
{{ end }}
<div class="posts">
{{ range .Pages }}
<div class="post on-list">
<article class="post on-list">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1>
@@ -55,7 +55,7 @@
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div>
{{ end }}
</div>
</article>
{{ end }}
{{ partial "pagination.html" . }}
</div>