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:
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 "/") -}}
|
||||
{{- $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’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 }}
|
||||
|
|
Loading…
Reference in a new issue