From 33985223fa03ba26fc1d440728c89306d7bd5618 Mon Sep 17 00:00:00 2001 From: rohan kumar Date: Tue, 24 Nov 2020 21:55:49 -0800 Subject: [PATCH] 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. --- config.toml | 7 +++++++ layouts/posts/single.gmi | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/config.toml b/config.toml index 0611500..70b8789 100644 --- a/config.toml +++ b/config.toml @@ -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" diff --git a/layouts/posts/single.gmi b/layouts/posts/single.gmi index e2358a8..4b6db88 100644 --- a/layouts/posts/single.gmi +++ b/layouts/posts/single.gmi @@ -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 }}