mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Layout templates: RSS link, Gemini consistency
- Link RSS feed in the navbar - Give gemlog a similar layout with the publication date at the top and a link to the source code at the bottom.
This commit is contained in:
parent
f04f293bdc
commit
33985223fa
2 changed files with 11 additions and 4 deletions
|
@ -34,6 +34,13 @@ name = "Rohan Kumar"
|
||||||
url = "/about.html"
|
url = "/about.html"
|
||||||
weight = 20
|
weight = 20
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
identifier = "rss"
|
||||||
|
name = "rss"
|
||||||
|
title = "rss"
|
||||||
|
url = "/posts/index.xml"
|
||||||
|
weight = 30
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
posts = "/:year/:month/:day/:filename"
|
posts = "/:year/:month/:day/:filename"
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# {{$.Title | safeHTML}}
|
# {{$.Title | safeHTML}}
|
||||||
|
{{.Date.Format "January 2, 2006"}}
|
||||||
|
|
||||||
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
|
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
“{{$.Title | safeHTML}}” was published on {{.Date.Format "January 2, 2006"}}.
|
=> / Homepage{{ with .OutputFormats.Get "html" }}
|
||||||
|
|
||||||
=> / Back to the home page{{ with .OutputFormats.Get "html" }}
|
|
||||||
=> {{.Permalink}} View “{{$.Title | safeHTML}}” on the WWW
|
=> {{.Permalink}} View “{{$.Title | safeHTML}}” on the WWW
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
=> {{ .Site.Params.src }} Gemini capsule source code
|
||||||
|
|
||||||
The content for this site is CC-BY-SA. The code for this site is MIT.
|
{{ .Site.Params.copyright }}
|
||||||
|
|
Loading…
Reference in a new issue