Skip to content

Commit

Permalink
TranslationBaseName replaced for Name on archetypes template
Browse files Browse the repository at this point in the history
  • Loading branch information
nonumeros committed May 27, 2018
1 parent e28290e commit 12d9b76
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion archetypes/chapter.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
+++
title = "{{ replace .TranslationBaseName "-" " " | title }}"
title = "{{ replace .Name "-" " " | title }}"
date = {{ .Date }}
weight = 5
chapter = true
Expand Down
2 changes: 1 addition & 1 deletion archetypes/default.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
+++
title = "{{ replace .TranslationBaseName "-" " " | title }}"
title = "{{ replace .Name "-" " " | title }}"
date = {{ .Date }}
weight = 5
+++
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/cont/archetypes.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
+++
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/cont/archetypes.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
+++
Expand Down

0 comments on commit 12d9b76

Please sign in to comment.