Remove site title from default page template

This commit is contained in:
adnano 2020-11-24 20:09:55 -05:00
parent 7f192dcaba
commit b03f8f3b00
2 changed files with 2 additions and 4 deletions

View file

@ -87,8 +87,7 @@ const index_gmi = `# {{ .Title }}
// Default page template // Default page template
const page_gmi = `# {{ .Title }} const page_gmi = `# {{ .Title }}
{{- if not .Date.IsZero }} {{- if not .Date.IsZero }}
Posted on {{ .Date.Format "2006-01-02" }} Posted on {{ .Date.Format "2006-01-02" }}{{ end }}
{{- if site.Title }} on {{ site.Title }}{{ end }}{{ end }}
{{ .Content }}` {{ .Content }}`

View file

@ -1,6 +1,5 @@
# {{ .Title }} # {{ .Title }}
{{- if not .Date.IsZero }} {{- if not .Date.IsZero }}
Posted on {{ .Date.Format "2006-01-02" }} Posted on {{ .Date.Format "2006-01-02" }}{{ end }}
{{- if site.Title }} on {{ site.Title }}{{ end }}{{ end }}
{{ .Content }} {{ .Content }}