Skip to content

Commit

Permalink
Merge pull request #145 from nonumeros/master
Browse files Browse the repository at this point in the history
TranslationBaseName replaced for Name on archetypes template
  • Loading branch information
matcornic authored Aug 10, 2018
2 parents ceed155 + 60dd68f commit d34944e
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 d34944e

Please sign in to comment.