1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02: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:
rohan kumar 2020-11-24 21:55:49 -08:00
parent f04f293bdc
commit 33985223fa
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 11 additions and 4 deletions

View file

@ -34,6 +34,13 @@ name = "Rohan Kumar"
url = "/about.html"
weight = 20
[[menu.main]]
identifier = "rss"
name = "rss"
title = "rss"
url = "/posts/index.xml"
weight = 30
[permalinks]
posts = "/:year/:month/:day/:filename"

View file

@ -1,13 +1,13 @@
# {{$.Title | safeHTML}}
{{.Date.Format "January 2, 2006"}}
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
---
“{{$.Title | safeHTML}}” was published on {{.Date.Format "January 2, 2006"}}.
=> / Back to the home page{{ with .OutputFormats.Get "html" }}
=> / Homepage{{ with .OutputFormats.Get "html" }}
=> {{.Permalink}} View “{{$.Title | safeHTML}}” on the WWW
{{- 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 }}