From 60dd68fc9439b587c2c477bc936adcb94154a895 Mon Sep 17 00:00:00 2001 From: nonumeros Date: Sun, 27 May 2018 13:29:39 -0400 Subject: [PATCH] TranslationBaseName replaced for Name on archetypes template --- archetypes/chapter.md | 2 +- archetypes/default.md | 2 +- exampleSite/content/cont/archetypes.en.md | 4 ++-- exampleSite/content/cont/archetypes.fr.md | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/archetypes/chapter.md b/archetypes/chapter.md index 240b6524f49..a29ba1bd4ce 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 c89c2e40deb..5124e2a774b 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 0e5350e4860..689ff9b01e0 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 57df1de639f..883c4186586 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 +++