From 68f972db2ce47fc0fcb7acbf2b339e874a2a61d8 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Sun, 15 Nov 2020 17:26:46 +0100 Subject: [PATCH] Add feed links on all pages --- templates/base.gohtml | 3 +++ templates/index.gohtml | 12 ++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/templates/base.gohtml b/templates/base.gohtml index 5f12f09..fd439f2 100644 --- a/templates/base.gohtml +++ b/templates/base.gohtml @@ -8,6 +8,9 @@ {{ with user.Picture }}{{ end }} {{ with .Canonical }}{{ end }} {{ template "title" . }} + + + diff --git a/templates/index.gohtml b/templates/index.gohtml index 93f9594..dc57001 100644 --- a/templates/index.gohtml +++ b/templates/index.gohtml @@ -1,12 +1,8 @@ {{ define "title" }} - {{ if .Data.Title }} - {{ .Data.Title }} - {{ .Blog.Title }} - {{ else }} - {{ .Blog.Title }} - {{ end }} - - - + {{ with .Data.Title }}{{ . }} - {{ end }}{{ .Blog.Title }} + + + {{ end }} {{ define "main" }}