diff --git a/archetypes/chapter.md b/archetypes/chapter.md index 240b6524f4..a29ba1bd4c 100644 --- a/archetypes/chapter.md +++ b/archetypes/chapter.md @@ -1,5 +1,5 @@ +++ -title = "{{ replace .TranslationBaseName "-" " " | title }}" +title = "{{ replace .Name "-" " " | title }}" date = {{ .Date }} weight = 5 chapter = true diff --git a/archetypes/default.md b/archetypes/default.md index c89c2e40de..5124e2a774 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,5 +1,5 @@ +++ -title = "{{ replace .TranslationBaseName "-" " " | title }}" +title = "{{ replace .Name "-" " " | title }}" date = {{ .Date }} weight = 5 +++ diff --git a/exampleSite/content/cont/archetypes.en.md b/exampleSite/content/cont/archetypes.en.md index 0e5350e486..689ff9b01e 100644 --- a/exampleSite/content/cont/archetypes.en.md +++ b/exampleSite/content/cont/archetypes.en.md @@ -19,7 +19,7 @@ It will create a page with predefined Front-Matter: ```markdown +++ -title = "{{ replace .TranslationBaseName "-" " " | title }}" +title = "{{ replace .Name "-" " " | title }}" date = {{ .Date }} weight = 5 chapter = true @@ -48,7 +48,7 @@ It will create a page with predefined Front-Matter: ```markdown +++ -title = "{{ replace .TranslationBaseName "-" " " | title }}" +title = "{{ replace .Name "-" " " | title }}" date = {{ .Date }} weight = 5 +++ diff --git a/exampleSite/content/cont/archetypes.fr.md b/exampleSite/content/cont/archetypes.fr.md index 57df1de639..883c418658 100644 --- a/exampleSite/content/cont/archetypes.fr.md +++ b/exampleSite/content/cont/archetypes.fr.md @@ -19,7 +19,7 @@ Cela crééra une page avec le Front Matter suivant: ```markdown +++ -title = "{{ replace .TranslationBaseName "-" " " | title }}" +title = "{{ replace .Name "-" " " | title }}" date = {{ .Date }} weight = 5 chapter = true @@ -48,7 +48,7 @@ Cela crééra une page avec le Front Matter suivant: ```markdown +++ -title = "{{ replace .TranslationBaseName "-" " " | title }}" +title = "{{ replace .Name "-" " " | title }}" date = {{ .Date }} weight = 5 +++