Update gemini post format

This commit is contained in:
hedy 2024-04-15 09:12:44 +08:00
parent 59447302f0
commit 0b26a6b51b
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
2 changed files with 9 additions and 7 deletions

View File

@ -1,2 +1 @@
{{ $lastmod := .Page.Lastmod -}}
{{- if lt .Page.Date $lastmod }}{{ with .Prefix }}{{ . }}{{ end }}Last updated on {{ $lastmod.Format "Jan 02, 2006" }}{{ with .Postfix }}{{ . }}{{ end }}{{ end -}}
{{ $lastmod := .Page.Lastmod -}}{{ if lt .Page.Date $lastmod }}{{ with .Prefix }}{{ . }}{{ end }}{{ $lastmod.Format "Jan 02, 2006" }}{{ with .Postfix }}{{ . }}{{ end }}{{ end -}}

View File

@ -1,17 +1,20 @@
{{ define "content" -}}
# {{ $.Title }}
{{ .Date.UTC.Format "Jan 02, 2006" }} · {{ .WordCount }} words
{{ partial "lastmod.gmi" (dict "Page" . "Postfix" ".") }}
--
{{ .Date.UTC.Format "Jan 02, 2006" }}
{{ partial "processed-content.gmi" . }}
--
***
EOF
{{ $subject := urlquery (printf "Re: %s" .Title) }}
=> {{ with .Params.publicReplyTo }}{{ . |safeHTML }}{{ else }}mailto:~hedy/posts@lists.sr.ht?subject={{ $subject }}{{ end }} Reply via email publicly (plain-text only)
=> mailto:{{ .Site.Author.email }}?subject={{ $subject }} Reply via email privately
{{ .WordCount }} words
{{ partial "lastmod.gmi" (dict "Page" . "Prefix" "This post was last updated on " "Postfix" ".") }}
=> / Home
=> . ← Gemlog
=> / ← Capsule home
{{- end }}