2022-05-25 00:28:32 +00:00
{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" -}}
2022-05-27 01:03:28 +00:00
{{- $isNotes := false -}}
{{- $action := "Posted" -}}
2022-10-19 21:42:13 +00:00
{{- $shortMeta := false -}}
2022-05-25 00:28:32 +00:00
{{- $logURL := printf "%scontent/%s" .Site.Params.logUrlPrefix .File.Path -}}
2022-10-19 21:42:13 +00:00
{{- if .Scratch.Get "shortMeta" -}}
{{- $shortMeta = true -}}
{{- end -}}
2022-05-27 01:03:28 +00:00
{{- if or (eq .Page.Section "notes") (eq .Page.Title "Notes") -}}
{{- $isNotes = true -}}
{{- $action = "Noted" -}}
{{- else -}}
2022-05-25 00:28:32 +00:00
{{- $logURL = $logURL | strings.ReplaceRE `\.md` `.gmi` -}}
{{- end -}}
2022-10-19 21:42:13 +00:00
{{- $needsModTime := gt (sub .Lastmod.Unix .Date.Unix) 900 -}}
{{- $needsList := or (and (not $shortMeta) $needsModTime) (not $isNotes) -}}
{{- if $needsList }}
< ul >
{{- else}}
2022-07-08 00:05:33 +00:00
< p >
2022-10-19 21:42:13 +00:00
{{- end }}
{{ if $needsList }}< li > {{ end }}
{{- $action }} < time { { if not ( . Params . evergreen ) } } itemprop = "dateCreated datePublished" class = "dt-published published" { { end } } datetime = "{{ .Date.Format " 2006-01-02T15:04:05Z07:00 " } } " > {{ .Date.Format "2006-01-02" }}< / time > by {{ partial "indieweb-author.html" -}}{{ if not $shortMeta }} on his < a rel = "canonical" itemprop = "url" class = "u-url url" href = "{{ .Site.Params.CanonicalBaseURL }}{{ $canonicalRelPermalink }}" > Website< / a > {{- with .OutputFormats.Get "gemtext" -}}{{- printf " " -}}and < a rel = "syndication" class = "u-syndication" href = "{{replace .Permalink " / gemini " " " 1 | safeURL } } " > Gemini capsule< / a > {{ end }}{{- end -}}.
{{ if $needsList }}< / li > {{ end }}
2022-06-02 04:00:19 +00:00
{{- if gt (sub .Lastmod.Unix .Date.Unix) 900 -}}
2022-10-19 21:42:13 +00:00
{{ if $needsList }}< li > {{ end }}
2022-10-23 21:54:36 +00:00
Last updated < time itemprop = "dateModified" class = "dt-updated updated" datetime = "{{ .Lastmod.Format " 2006-01-02T15:04:05Z07:00 " } } " > {{ .Lastmod.Format "2006-01-02" }}< / time > .{{ if not $shortMeta }} < a href = "{{ $logURL }}" > Changelog< / a > {{ end }}
2022-10-19 21:42:13 +00:00
{{ if $needsList }}< / li > {{ end }}
2022-06-02 04:00:19 +00:00
{{- end -}}
{{- if not $isNotes -}}
2022-10-19 21:42:13 +00:00
{{ if $needsList }}< li > {{ else }}< br / > {{ end }}
2022-05-24 23:33:16 +00:00
{{ partial "wordcount.html" . -}}
2022-10-19 21:42:13 +00:00
{{ if $needsList }}< / li > {{ end }}
2022-06-02 04:49:04 +00:00
{{- end -}}
2022-10-19 21:42:13 +00:00
{{- if $needsList }}
< / ul >
{{- else}}
2022-07-08 00:05:33 +00:00
< / p >
2022-10-19 21:42:13 +00:00
{{- end }}