1
0
Fork 0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-05-13 19:46:06 +02:00

Remove site title from default page template

This commit is contained in:
Adnan Maolood 2020-11-24 20:09:55 -05:00
parent 121b91990a
commit 92463aff4f
2 changed files with 2 additions and 4 deletions

View File

@ -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 }}`

View File

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