mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-13 01:02:10 +00:00
Add <main> to posts page. Replaces <section>
This commit is contained in:
parent
aee6d9410c
commit
2dd338ea13
1 changed files with 7 additions and 2 deletions
|
@ -2,10 +2,11 @@
|
||||||
{{- if and (ne .Permalink .Site.BaseURL) (ne .RelPermalink "/") -}}
|
{{- if and (ne .Permalink .Site.BaseURL) (ne .RelPermalink "/") -}}
|
||||||
{{- $isStandalone = true -}}
|
{{- $isStandalone = true -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<section class="h-feed hfeed" itemscope itemtype="https://schema.org/{{ if $isStandalone }}Complete{{ end }}DataFeed">
|
|
||||||
{{- if $isStandalone }}
|
{{- 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>
|
<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>
|
<h2 class="p-name" itemprop="name" id="posts">Posts</h2>
|
||||||
<p>Here’s a selection of my best posts. To see the rest, visit <a href="/posts.html">my Posts page</a>.</p>
|
<p>Here’s a selection of my best posts. To see the rest, visit <a href="/posts.html">my Posts page</a>.</p>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -40,4 +41,8 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ol>
|
</ol>
|
||||||
|
{{ if $isStandalone -}}
|
||||||
|
</main>
|
||||||
|
{{ else -}}
|
||||||
</section>
|
</section>
|
||||||
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue