2022-04-26 00:28:13 +00:00
{{- $isStandalone := false -}}
2022-05-02 04:14:06 +00:00
{{- if and (ne .Permalink .Site.BaseURL) (ne .RelPermalink "/") -}}
2022-04-26 00:28:13 +00:00
{{- $isStandalone = true -}}
{{- end -}}
2022-05-21 01:32:21 +00:00
{{- if $isStandalone -}}
2022-05-04 05:02:04 +00:00
< main itemprop = "mainEntity" class = "h-feed hfeed" itemscope itemtype = "https://schema.org/CompleteDataFeed" >
2022-04-17 19:48:33 +00:00
< h1 class = "p-name" itemprop = "name headline" id = "posts" > Posts< / h1 >
2022-05-05 05:22:38 +00:00
< p > These are all of my posts, sorted by date (newest first).< / p >
2022-05-21 01:32:21 +00:00
{{- else -}}
2022-05-06 02:57:27 +00:00
< section class = "h-feed hfeed" itemprop = "hasPart" itemscope itemtype = "https://schema.org/DataFeed" >
2022-03-27 18:14:33 +00:00
< h2 class = "p-name" itemprop = "name" id = "posts" > Posts< / h2 >
2022-05-05 05:22:38 +00:00
< p > Here’ s a selection of my best posts, in featured order. To see the rest, visit < a href = "/posts.html" > my Posts page< / a > .< / p >
2022-04-26 00:28:13 +00:00
{{- end }}
2022-05-02 04:33:51 +00:00
< p > I edit some of these posts quite often; some are updated indefinitely. Check the “ updated” timestamps.< / p >
2022-04-26 00:39:51 +00:00
< p role = "doc-tip" >
Timestamp format: < code > YYYY-MM-DD< / code > , as per < cite > < a href = "https://www.ietf.org/rfc/rfc3339.txt" > RFC 3339< / a > < / cite > and < cite > < a href = "https://xkcd.com/1179/" > ISO 8601< / a > < / cite >
< / p >
2022-05-05 05:22:38 +00:00
< ol >
2022-05-24 23:33:16 +00:00
{{- $posts := (where site.RegularPages "Section" "posts") -}}
2022-05-05 05:22:38 +00:00
{{- if not $isStandalone -}}
{{- $posts = sort (where $posts "Params.featured" ">" 0) "Params.featured" -}}
{{- end -}}
{{- range $posts -}}
2022-05-21 01:32:21 +00:00
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" -}}
2022-05-21 01:35:04 +00:00
< li itemprop = "dataFeedElement" itemscope itemtype = "https://schema.org/DataFeedItem" >
< article class = "h-entry hentry" itemprop = "item" itemscope itemtype = "https://schema.org/BlogPosting" itemid = "{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}" >
2022-04-26 00:28:13 +00:00
{{ if $isStandalone -}}
2022-04-25 15:54:42 +00:00
< h2
2022-04-26 00:28:13 +00:00
{{- else -}}
2022-04-25 15:54:42 +00:00
< h3
2022-04-26 00:28:13 +00:00
{{- end }}
2022-04-25 15:54:42 +00:00
itemprop="name headline" class="p-name entry-title">
2022-03-04 21:55:42 +00:00
< a href = "{{ .Permalink }}" itemprop = "url" class = "u-url url" rel = "bookmark" >
2022-04-26 00:28:13 +00:00
{{ .Title }}
2022-03-04 21:55:42 +00:00
< / a >
2022-04-26 00:28:13 +00:00
{{ if $isStandalone -}}
2022-04-25 15:54:42 +00:00
< / h2 >
2022-04-26 00:28:13 +00:00
{{- else -}}
2022-03-04 21:55:42 +00:00
< / h3 >
2022-04-26 00:28:13 +00:00
{{- end }}
2022-05-24 23:33:16 +00:00
Posted < time itemprop = "datePublished" class = "dt-published published" datetime = "{{ .Date.Format " 2006-01-02 15:04:05Z07:00 " } } " > {{ .Date.Format "2006-01-02" }}< / time >
{{- if lt .Date .Lastmod -}}
, 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" }}< / time >
{{- end }}
2022-03-08 06:44:45 +00:00
< p class = "p-summary entry-summary" itemprop = "description" > {{ .Description }}< / p >
2022-05-16 00:38:30 +00:00
< p > {{- partial "wordcount.html" . -}}< / p >
2022-03-04 21:55:42 +00:00
< / article >
2022-02-16 05:42:58 +00:00
< / li >
{{- end }}
2022-04-05 04:40:36 +00:00
< / ol >
2022-05-04 05:02:04 +00:00
{{ if $isStandalone -}}
< / main >
{{ else -}}
2022-03-08 06:44:45 +00:00
< / section >
2022-05-04 05:02:04 +00:00
{{ end }}