1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-24 01:42:10 +00:00

Add <main> to posts page. Replaces <section>

This commit is contained in:
Rohan Kumar 2022-05-03 22:02:04 -07:00
parent aee6d9410c
commit 2dd338ea13
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -2,10 +2,11 @@
{{- if and (ne .Permalink .Site.BaseURL) (ne .RelPermalink "/") -}}
{{- $isStandalone = true -}}
{{- end -}}
<section class="h-feed hfeed" itemscope itemtype="https://schema.org/{{ if $isStandalone }}Complete{{ end }}DataFeed">
{{- if $isStandalone }}
<main itemprop="mainEntity" class="h-feed hfeed" itemscope itemtype="https://schema.org/CompleteDataFeed">
<h1 class="p-name" itemprop="name headline" id="posts">Posts</h1>
{{- else }}
{{- else }}
<section class="h-feed hfeed" itemscope itemtype="https://schema.org/DataFeed">
<h2 class="p-name" itemprop="name" id="posts">Posts</h2>
<p>Here&rsquo;s a selection of my best posts. To see the rest, visit <a href="/posts.html">my Posts page</a>.</p>
{{- end }}
@ -40,4 +41,8 @@
{{- end }}
{{- end }}
</ol>
{{ if $isStandalone -}}
</main>
{{ else -}}
</section>
{{ end }}