From ce9023b96ad5e18657ac3fcca9954192f2e7f6af Mon Sep 17 00:00:00 2001 From: Frank Homburg Date: Mon, 16 May 2022 18:19:38 +0200 Subject: [PATCH] templates for blog and default content files --- archetypes/blog.md | 4 ++-- archetypes/default.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/archetypes/blog.md b/archetypes/blog.md index e4594c6..ea1dcdb 100644 --- a/archetypes/blog.md +++ b/archetypes/blog.md @@ -1,4 +1,4 @@ -+++ +--- title = "{{ replace .Name "-" " " | title }}" date = "{{ .Date }}" @@ -8,6 +8,6 @@ date = "{{ .Date }}" # 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 }}] -+++ +--- This is a page about »{{ replace .Name "-" " " | title }}«. diff --git a/archetypes/default.md b/archetypes/default.md index e8406b3..ab4ba64 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,6 @@ -+++ -title = "{{ replace .Name "-" " " | title }}" -date = "{{ .Date }}" +--- +title = {{ replace .Name "-" " " | title }} +date = {{ .Date }} # # Set menu to "main" to add this page to @@ -17,6 +17,6 @@ menu = "main" # tags are optional # # tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}] -+++ +--- This is a page about »{{ replace .Name "-" " " | title }}«.