mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2025-02-25 15:50:05 +00:00
Fix skipped heading level
This commit is contained in:
parent
de526ce75c
commit
87a89ce514
2 changed files with 13 additions and 4 deletions
|
@ -10,11 +10,11 @@
|
||||||
<li>
|
<li>
|
||||||
<article class="h-entry hentry" itemprop="dataFeedElement" itemscope itemtype="https://schema.org/SocialMediaPosting https://schema.org/DataFeedItem">
|
<article class="h-entry hentry" itemprop="dataFeedElement" itemscope itemtype="https://schema.org/SocialMediaPosting https://schema.org/DataFeedItem">
|
||||||
<meta itemprop="headline" content="{{ $bookmark.title }}"> <!--Just because we can't have one headline refer to two items-->
|
<meta itemprop="headline" content="{{ $bookmark.title }}"> <!--Just because we can't have one headline refer to two items-->
|
||||||
<h3 itemprop="sharedContent" itemscope itemtype="https://schema.org/WebPage" class="p-name">
|
<h2 itemprop="sharedContent" itemscope itemtype="https://schema.org/WebPage" class="p-name">
|
||||||
<a itemprop="url" href="{{ $bookmark.uri }}" class="u-bookmark-of h-cite">
|
<a itemprop="url" href="{{ $bookmark.uri }}" class="u-bookmark-of h-cite">
|
||||||
<span itemprop="headline">{{ $bookmark.title | replaceRE `Defunctionalisation` `Defunction­alisation` | safeHTML }}</span>
|
<span itemprop="headline">{{ $bookmark.title | replaceRE `Defunctionalisation` `Defunction­alisation` | safeHTML }}</span>
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h2>
|
||||||
{{- $tags := split $bookmark.tags "," -}}
|
{{- $tags := split $bookmark.tags "," -}}
|
||||||
{{- $firstTag := index $tags 0 }}
|
{{- $firstTag := index $tags 0 }}
|
||||||
{{- $timestamp := dateFormat "2006-01-02 15:04:05-0700" $firstTag }}
|
{{- $timestamp := dateFormat "2006-01-02 15:04:05-0700" $firstTag }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{ $isStandalone := false }}
|
{{ $isStandalone := false }}
|
||||||
{{ if eq .RelPermalink "/posts.html" -}}
|
{{ if ne .Permalink .Site.BaseURL -}}
|
||||||
{{ $isStandalone = true }}
|
{{ $isStandalone = true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<section class="h-feed hfeed" itemscope itemtype="https://schema.org/{{ if $isStandalone }}Complete{{ end }}DataFeed">
|
<section class="h-feed hfeed" itemscope itemtype="https://schema.org/{{ if $isStandalone }}Complete{{ end }}DataFeed">
|
||||||
|
@ -16,11 +16,20 @@
|
||||||
{{- if or ($isStandalone) (.Params.featured) -}}
|
{{- if or ($isStandalone) (.Params.featured) -}}
|
||||||
<li>
|
<li>
|
||||||
<article class="h-entry hentry" itemprop="dataFeedElement" itemscope itemtype="https://schema.org/BlogPosting https://schema.org/DataFeedItem">
|
<article class="h-entry hentry" itemprop="dataFeedElement" itemscope itemtype="https://schema.org/BlogPosting https://schema.org/DataFeedItem">
|
||||||
<h3 itemprop="name headline" class="p-name entry-title">
|
{{ if $isStandalone }}
|
||||||
|
<h2
|
||||||
|
{{ else }}
|
||||||
|
<h3
|
||||||
|
{{ end }}
|
||||||
|
itemprop="name headline" class="p-name entry-title">
|
||||||
<a href="{{ .Permalink }}" itemprop="url" class="u-url url" rel="bookmark">
|
<a href="{{ .Permalink }}" itemprop="url" class="u-url url" rel="bookmark">
|
||||||
{{ .Title -}}
|
{{ .Title -}}
|
||||||
</a>
|
</a>
|
||||||
|
{{ if $isStandalone }}
|
||||||
|
</h2>
|
||||||
|
{{ else }}
|
||||||
</h3>
|
</h3>
|
||||||
|
{{ end }}
|
||||||
Posted <time itemprop="datePublished" class="dt-published published" datetime="{{ .Date.Format "2006-01-02 15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>, updated
|
Posted <time itemprop="datePublished" class="dt-published published" datetime="{{ .Date.Format "2006-01-02 15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>, updated
|
||||||
<time itemprop="dateModified" class="dt-updated updated" datetime="{{ .Lastmod.Format "2006-01-02 15:04:05Z07:00" }}">{{ .Lastmod.Format "2006-01-02" }}</time>
|
<time itemprop="dateModified" class="dt-updated updated" datetime="{{ .Lastmod.Format "2006-01-02 15:04:05Z07:00" }}">{{ .Lastmod.Format "2006-01-02" }}</time>
|
||||||
<p class="p-summary entry-summary" itemprop="description">{{ .Description }}</p>
|
<p class="p-summary entry-summary" itemprop="description">{{ .Description }}</p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue