{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" -}} {{- $isNotes := false -}} {{- $action := "Posted" -}} {{- $shortMeta := false -}} {{- $logURL := printf "%scontent/%s" .Site.Params.logUrlPrefix .File.Path -}} {{- if .Scratch.Get "shortMeta" -}} {{- $shortMeta = true -}} {{- end -}} {{- if or (eq .Page.Section "notes") (eq .Page.Title "Notes") -}} {{- $isNotes = true -}} {{- $action = "Noted" -}} {{- end -}} {{- $needsModTime := gt (sub .Lastmod.Unix .Date.Unix) 900 -}} {{- $needsList := or (and (not $shortMeta) $needsModTime) (not $isNotes) -}} {{- $gemini := "" }} {{- with .OutputFormats.Get "gemtext" -}} {{- $gemini = replace .Permalink "/gemini" "" 1 | safeURL -}} {{- end -}} {{- if not (eq .Page.Section "posts" ) -}} {{- $gemini = replace $gemini "/index.gmi" ".gmi" | safeURL -}} {{- end -}} {{- if $needsList }} {{- else}}

{{- end }}