Update gemini post format
This commit is contained in:
parent
59447302f0
commit
0b26a6b51b
|
@ -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 -}}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue