Skip to content

Commit

Permalink
Use humanize instead of title in archetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
BBaoVanC committed Oct 29, 2021
1 parent 168c9d9 commit ae37e58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion archetypes/blog/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

title: {{ replace .Name "-" " " | title }}
title: {{ replace .Name "-" " " | humanize }}
date: {{ .Date | time.Format "2006-01-02" }}
toc: true
comments: true
Expand Down
2 changes: 1 addition & 1 deletion archetypes/default/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

title: {{ replace .Name "-" " " | title }}
title: {{ replace .Name "-" " " | humanize }}
menu: main
toc: true
comments: false
Expand Down

0 comments on commit ae37e58

Please sign in to comment.