templates for blog and default content files

main
Frank Homburg 2 years ago
parent 722b9fa98b
commit ce9023b96a

@ -1,4 +1,4 @@
+++ ---
title = "{{ replace .Name "-" " " | title }}" title = "{{ replace .Name "-" " " | title }}"
date = "{{ .Date }}" date = "{{ .Date }}"
@ -8,6 +8,6 @@ date = "{{ .Date }}"
# description = "An optional description for SEO. If not provided, an automatically created summary will be used." # description = "An optional description for SEO. If not provided, an automatically created summary will be used."
tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}] tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}]
+++ ---
This is a page about »{{ replace .Name "-" " " | title }}«. This is a page about »{{ replace .Name "-" " " | title }}«.

@ -1,6 +1,6 @@
+++ ---
title = "{{ replace .Name "-" " " | title }}" title = {{ replace .Name "-" " " | title }}
date = "{{ .Date }}" date = {{ .Date }}
# #
# Set menu to "main" to add this page to # Set menu to "main" to add this page to
@ -17,6 +17,6 @@ menu = "main"
# tags are optional # tags are optional
# #
# tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}] # tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}]
+++ ---
This is a page about »{{ replace .Name "-" " " | title }}«. This is a page about »{{ replace .Name "-" " " | title }}«.

Loading…
Cancel
Save