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

{{- end }}