2022-07-11 05:36:22 +00:00
{{ define "main" -}}
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
2022-07-13 15:31:20 +00:00
< main >
2022-07-11 05:36:22 +00:00
{{- $articleTag := printf `< article class = "h-entry hentry" itemprop = "mainEntity" itemscope = "" itemtype = "https://schema.org/Article" itemid = "%s%s" > ` .Site.Params.CanonicalBaseURL $canonicalRelPermalink -}}
{{ partial "full-article.html" . | replaceRE `< article class = "h-entry hentry" > ` $articleTag | safeHTML }}
< hr / >
< section itemprop = "hasPart" class = "h-feed hfeed" itemscope = "" itemtype = "https://schema.org/DataFeed" >
< h2 > More about this site< / h2 >
< p role = "doc-tip" >
Timestamp format: < code > YYYY-MM-DD HH:MM< / code > , as per < cite > < a href = "https://www.ietf.org/rfc/rfc3339.txt" > RFC 3339< / a > < / cite > . Sorted newest to oldest.
< / p >
< ol >
{{- $pages := (where site.RegularPages "Section" .Section) -}}
{{- range $pages -}}
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" -}}
< li itemprop = "dataFeedElement" itemscope = "" itemtype = "https://schema.org/DataFeedItem" >
< article class = "h-entry hentry" itemprop = "item" itemscope = "" itemtype = "https://schema.org/Article" itemid = "{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}" >
< h3 itemprop = "name headline" class = "p-name entry-title" >
< a href = "{{ .Permalink }}" itemprop = "url" class = "u-url url" rel = "bookmark" >
{{ .Title }}
< / a >
< / h3 >
< p >
2023-11-29 13:52:05 +00:00
Posted < time itemprop = "datePublished" class = "dt-published published" datetime = "{{ .Date.UTC.Format " 2006-01-02 15:04:05Z07:00 " } } " > {{ .Date.UTC.Format "2006-01-02 15:04" }}< / time >
2022-07-11 05:36:22 +00:00
{{- if gt (sub .Lastmod.Unix .Date.Unix) 3600 -}}
2023-11-29 13:52:05 +00:00
, updated < time { { if not ( . Params . evergreen ) } } itemprop = "dateModified" class = "dt-updated updated" { { end } } datetime = "{{ .Lastmod.UTC.Format " 2006-01-02 15:04:05Z07:00 " } } " > {{ .Lastmod.UTC.Format "2006-01-02 15:04" }}< / time >
2022-07-11 05:36:22 +00:00
{{- end }}
< / p >
2022-08-02 03:52:35 +00:00
< div >
2022-07-11 05:36:22 +00:00
< p class = "p-summary entry-summary" itemprop = "description" > {{ .Description }}< / p >
2023-11-25 20:53:36 +00:00
< p > {{- partial "post-meta/wordcount.html" . -}}< / p >
2022-08-02 03:52:35 +00:00
< / div >
2022-07-11 05:36:22 +00:00
< / article >
< / li >
{{- end }}
< / ol >
< / section >
< / main >
{{ end }}