diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html index 79b1eae..51e8263 100644 --- a/layouts/partials/post-meta.html +++ b/layouts/partials/post-meta.html @@ -1,12 +1,16 @@ -{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }} -{{- $logURL := printf "%scontent/%s" .Site.Params.logUrlPrefix .File.Path }} +{{ $isNote := (eq .Page.Section "notes") -}} +{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" -}} +{{- $logURL := printf "%scontent/%s" .Site.Params.logUrlPrefix .File.Path -}} +{{- if not $isNote -}} + {{- $logURL = $logURL | strings.ReplaceRE `\.md` `.gmi` -}} +{{- end -}} Posted {{ .Date.Format "2006-01-02" }} by {{- partial "indieweb-author.html" -}} on his Website{{- with .OutputFormats.Get "gemtext" -}}{{- printf " " -}}and Gemini capsule{{- end -}}. {{ if lt .Date .Lastmod -}}
- Last updated . Changelog. + Last updated . Changelog. {{- end }} - {{ if not (eq .Page.Section "notes") -}} + {{ if not $isNote -}}
{{ partial "wordcount.html" . -}} {{ end }}