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" }}