Compare commits
3 Commits
59447302f0
...
51c2835821
Author | SHA1 | Date |
---|---|---|
hedy | 51c2835821 | |
hedy | a6c3079a16 | |
hedy | 0b26a6b51b |
|
@ -1,7 +1,7 @@
|
|||
# ~hedy's site
|
||||
|
||||
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).
|
||||
|
||||
As of now, static site hosting is provided by srht.site.
|
||||
|
|
|
@ -2,13 +2,10 @@
|
|||
|
||||
# {{ .Title }}
|
||||
|
||||
{{ $lastmod := .Lastmod -}}
|
||||
{{ if lt .Date $lastmod -}}
|
||||
Last updated {{ .Lastmod.UTC.Format "2006-01-02" }}{{ end }}
|
||||
--
|
||||
|
||||
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
|
||||
{{ partial "processed-content.gmi" . }}
|
||||
|
||||
--
|
||||
{{ partial "lastmod.gmi" (dict "Page" . "Prefix" "Last updated on " "Postfix" "." ) }}
|
||||
|
||||
=> / Home
|
||||
{{- end }}
|
||||
|
|
|
@ -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