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 }}" title: "{{ strings.TrimPrefix $date .Name | replace "-" " " | humanize }}"
date: {{ .Date }} publishdate: {{ .Date }}
--- ---
= {{ replace .Name "-" " " | humanize }} = {{ replace .Name "-" " " | humanize }}
Gabriel Arazas <foodogsquared@foodogsquared.one> Gabriel Arazas <foodogsquared@foodogsquared.one>
{{ dateFormat "2006-01-02" .Date }} {{ $date }}