2022-06-01 00:11:52 +00:00
{{ define "main" -}}
2022-07-13 15:31:20 +00:00
< main
2022-07-07 15:52:55 +00:00
itemprop="mainEntity" class="h-feed hfeed" itemscope="" itemtype="https://schema.org/DataFeed">
2022-06-19 21:21:40 +00:00
{{ partial "processed-content.html" . }}
< 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/" "/" -}}
2022-07-16 05:04:15 +00:00
{{- $isTall := and (eq .Section "notes") (gt .WordCount 200) -}}
{{- $itemtype := "SocialMediaPosting" -}}
{{- if eq .Section "posts" -}}
{{- $itemtype = "BlogPosting" -}}
{{- end -}}
2022-06-19 21:21:40 +00:00
< li itemprop = "dataFeedElement" itemscope = "" itemtype = "https://schema.org/DataFeedItem" >
2022-07-16 05:04:15 +00:00
< article
class="h-entry hentry{{ with $isTall }} tall{{ end }}"
itemprop="item" itemscope="" itemtype="https://schema.org/{{ $itemtype }}" itemid="{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}">
2022-06-19 21:21:40 +00:00
< h2 itemprop = "name headline" class = "p-name entry-title" >
< a href = "{{ .Permalink }}" itemprop = "url" class = "u-url url" rel = "bookmark" >
{{ .Title }}
< / a >
< / h2 >
< p >
Posted < time itemprop = "datePublished" class = "dt-published published" datetime = "{{ .Date.Format " 2006-01-02 15:04:05Z07:00 " } } " > {{ .Date.Format "2006-01-02 15:04" }}< / time >
{{- if gt (sub .Lastmod.Unix .Date.Unix) 3600 -}}
, updated < time { { if not ( . Params . evergreen ) } } itemprop = "dateModified" class = "dt-updated updated" { { end } } datetime = "{{ .Lastmod.Format " 2006-01-02 15:04:05Z07:00 " } } " > {{ .Lastmod.Format "2006-01-02 15:04" }}< / time >
{{- end }}
< / p >
{{- if eq .Section "notes" }}
< div class = "e-content entry-content" itemprop = "articleBody" >
{{- if .Params.replyURI -}}
{{- partial "reply-context" .Params -}}
{{- end -}}
{{ partial "processed-content.html" . }}
< / div >
{{- else }}
< p class = "p-summary entry-summary" itemprop = "description" > {{ .Description }}< / p >
< p > {{- partial "wordcount.html" . -}}< / p >
{{- end }}
< / article >
< / li >
{{- end }}
< / ol >
< / main >
2020-11-03 23:46:20 +00:00
{{ end }}