From ae37e587a3553d10cad0b7ad4bfef2928514e52e Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 29 Oct 2021 01:11:16 -0500 Subject: [PATCH] Use humanize instead of title in archetypes --- archetypes/blog/index.md | 2 +- archetypes/default/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archetypes/blog/index.md b/archetypes/blog/index.md index eadc0d4..855101b 100644 --- a/archetypes/blog/index.md +++ b/archetypes/blog/index.md @@ -1,6 +1,6 @@ --- -title: {{ replace .Name "-" " " | title }} +title: {{ replace .Name "-" " " | humanize }} date: {{ .Date | time.Format "2006-01-02" }} toc: true comments: true diff --git a/archetypes/default/index.md b/archetypes/default/index.md index eb3d4a4..62154c0 100644 --- a/archetypes/default/index.md +++ b/archetypes/default/index.md @@ -1,6 +1,6 @@ --- -title: {{ replace .Name "-" " " | title }} +title: {{ replace .Name "-" " " | humanize }} menu: main toc: true comments: false