mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Microdata: add itemid attributes
This commit is contained in:
parent
372589a57a
commit
f5f0785e65
5 changed files with 7 additions and 5 deletions
|
@ -8,7 +8,7 @@ sitemap:
|
|||
- ChangeFreq: weekly
|
||||
- Priority: 0.9
|
||||
---
|
||||
<div itemprop="author" itemscope itemtype="https://schema.org/Person" class="p-author author h-card vcard">
|
||||
<div itemprop="author" itemscope itemtype="https://schema.org/Person" itemid="https://seirdy.one/#seirdy" class="p-author author h-card vcard" id="seirdy">
|
||||
|
||||
Seirdy's Home
|
||||
=============
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{{ define "main" }}
|
||||
<main itemprop="mainEntity" itemscope itemtype="https://schema.org/Article">
|
||||
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
|
||||
<main itemprop="mainEntity" itemscope itemtype="https://schema.org/Article" itemid="{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}">
|
||||
{{ partial "full-article.html" . }}
|
||||
</main>
|
||||
{{ end }}
|
||||
|
|
|
@ -9,4 +9,4 @@ Posted <time itemprop="dateCreated datePublished" class="dt-published published"
|
|||
<span itemprop="wordCount">{{ .WordCount }}</span> words
|
||||
{{- with .ReadingTime }},
|
||||
a{{ if hasPrefix (string .) "8" }}n{{ end }}
|
||||
<span itemprop="timeRequired" content="PT{{ . }}M">{{ . }} minute</span> read{{- end }}
|
||||
<time itemprop="timeRequired" datetime="PT{{ . }}M">{{ . }} minute</time> read{{- end }}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{{- define "main" -}}
|
||||
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
|
||||
{{- .Scratch.Set "codeIndex" 1 -}}
|
||||
<main itemprop="blogPost mainEntity" itemscope itemtype="https://schema.org/BlogPosting">
|
||||
<main itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting" itemid="{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}">
|
||||
{{ partial "full-article.html" . }}
|
||||
{{ partial "webmentions.html" . }}
|
||||
</main>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
(btw this is all made of <span> cuz it is supposed to be inline)
|
||||
-->
|
||||
<span itemprop="author" itemscope itemtype="https://schema.org/Person" class="h-card p-author author vcard">
|
||||
<span itemprop="author" itemscope itemtype="https://schema.org/Person" itemid="https://seirdy.one/#seirdy" class="h-card p-author author vcard">
|
||||
<a itemprop="url" href="https://seirdy.one" rel="author home cc:attributionURL" class="u-url url" property="cc:attributionName">
|
||||
{{ partial "indieweb-icon.html" }}
|
||||
<span itemprop="name" class="p-name fn n">
|
||||
|
|
Loading…
Reference in a new issue