From b03f8f3b00579fe68c0d9dcbabce791b9600e262 Mon Sep 17 00:00:00 2001 From: adnano Date: Tue, 24 Nov 2020 20:09:55 -0500 Subject: [PATCH] Remove site title from default page template --- templates.go | 3 +-- templates/page.gmi | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/templates.go b/templates.go index de147ab..ff548d5 100644 --- a/templates.go +++ b/templates.go @@ -87,8 +87,7 @@ const index_gmi = `# {{ .Title }} // Default page template const page_gmi = `# {{ .Title }} {{- if not .Date.IsZero }} -Posted on {{ .Date.Format "2006-01-02" }} -{{- if site.Title }} on {{ site.Title }}{{ end }}{{ end }} +Posted on {{ .Date.Format "2006-01-02" }}{{ end }} {{ .Content }}` diff --git a/templates/page.gmi b/templates/page.gmi index bd4662e..c9de13a 100644 --- a/templates/page.gmi +++ b/templates/page.gmi @@ -1,6 +1,5 @@ # {{ .Title }} {{- if not .Date.IsZero }} -Posted on {{ .Date.Format "2006-01-02" }} -{{- if site.Title }} on {{ site.Title }}{{ end }}{{ end }} +Posted on {{ .Date.Format "2006-01-02" }}{{ end }} {{ .Content }}