Semantics: use article element where appropriate

See #371
This commit is contained in:
Rohan Kumar 2022-09-27 13:58:45 -07:00
parent 7e552cfc27
commit a44ecc8816
No known key found for this signature in database
GPG Key ID: 1E892DB2A5F84479
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
{{ range $paginator.Pages }} {{ range $paginator.Pages }}
<div class="post on-list"> <article class="post on-list">
<h1 class="post-title"> <h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1> </h1>
@ -58,7 +58,7 @@
href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a> href="{{.RelPermalink}}">{{ $.Site.Params.ReadMore }} →</a>
</div> </div>
{{ end }} {{ end }}
</div> </article>
{{ end }} {{ end }}
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
</div> </div>

View File

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