diff --git a/archetypes/post/index.adoc b/archetypes/post/index.adoc index 3e231d6..9dea93c 100644 --- a/archetypes/post/index.adoc +++ b/archetypes/post/index.adoc @@ -1,9 +1,10 @@ +{{- $date := time.Format "2006-01-02" .Date }} --- -title: "{{ replace .Name "-" " " | humanize }}" -date: {{ .Date }} +title: "{{ strings.TrimPrefix $date .Name | replace "-" " " | humanize }}" +publishdate: {{ .Date }} --- = {{ replace .Name "-" " " | humanize }} Gabriel Arazas -{{ dateFormat "2006-01-02" .Date }} +{{ $date }}