Update post archetype

This commit is contained in:
Gabriel Arazas 2023-04-09 13:42:23 +08:00
parent 4c231e7777
commit 72be884fd4
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -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 <foodogsquared@foodogsquared.one>
{{ dateFormat "2006-01-02" .Date }}
{{ $date }}