Compare commits
3 Commits
59447302f0
...
51c2835821
Author | SHA1 | Date |
---|---|---|
hedy | 51c2835821 | |
hedy | a6c3079a16 | |
hedy | 0b26a6b51b |
|
@ -1,7 +1,7 @@
|
||||||
# ~hedy's site
|
# ~hedy's site
|
||||||
|
|
||||||
This is my website and gemini capsule source code. Link is currently
|
This is my website and gemini capsule source code. Link is currently
|
||||||
hedy.tilde.cafe on both [web](https://home.hedy.dev) and
|
home.hedy.dev on both [web](https://home.hedy.dev) and
|
||||||
[gemini](gemini://home.hedy.dev).
|
[gemini](gemini://home.hedy.dev).
|
||||||
|
|
||||||
As of now, static site hosting is provided by srht.site.
|
As of now, static site hosting is provided by srht.site.
|
||||||
|
|
|
@ -2,13 +2,10 @@
|
||||||
|
|
||||||
# {{ .Title }}
|
# {{ .Title }}
|
||||||
|
|
||||||
{{ $lastmod := .Lastmod -}}
|
{{ partial "processed-content.gmi" . }}
|
||||||
{{ if lt .Date $lastmod -}}
|
|
||||||
Last updated {{ .Lastmod.UTC.Format "2006-01-02" }}{{ end }}
|
|
||||||
--
|
|
||||||
|
|
||||||
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
{{ partial "lastmod.gmi" (dict "Page" . "Prefix" "Last updated on " "Postfix" "." ) }}
|
||||||
|
|
||||||
=> / Home
|
=> / Home
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
{{ $lastmod := .Page.Lastmod -}}
|
{{ $lastmod := .Page.Lastmod -}}{{ if lt .Page.Date $lastmod }}{{ with .Prefix }}{{ . }}{{ end }}{{ $lastmod.Format "Jan 02, 2006" }}{{ with .Postfix }}{{ . }}{{ end }}{{ end -}}
|
||||||
{{- if lt .Page.Date $lastmod }}{{ with .Prefix }}{{ . }}{{ end }}Last updated on {{ $lastmod.Format "Jan 02, 2006" }}{{ with .Postfix }}{{ . }}{{ end }}{{ end -}}
|
|
||||||
|
|
|
@ -1,17 +1,20 @@
|
||||||
{{ define "content" -}}
|
{{ define "content" -}}
|
||||||
# {{ $.Title }}
|
# {{ $.Title }}
|
||||||
|
|
||||||
{{ .Date.UTC.Format "Jan 02, 2006" }} · {{ .WordCount }} words
|
{{ .Date.UTC.Format "Jan 02, 2006" }}
|
||||||
{{ partial "lastmod.gmi" (dict "Page" . "Postfix" ".") }}
|
|
||||||
--
|
|
||||||
{{ partial "processed-content.gmi" . }}
|
{{ partial "processed-content.gmi" . }}
|
||||||
|
|
||||||
--
|
***
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
{{ $subject := urlquery (printf "Re: %s" .Title) }}
|
{{ $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)
|
=> {{ 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
|
=> 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 }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in New Issue