Semantics: use article element where appropriate

See 
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
layouts/_default

View File

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

View File

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