Make it more convenient to create a new blog post.

This commit is contained in:
Adam Gausmann 2025-04-18 23:33:47 -05:00
parent b42dab2cd8
commit d61fc79b5f
3 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
date = {{ dateFormat "2006-01-02" .Date }}
draft = true
+++

View file

@ -5,7 +5,7 @@ author = 'Adam Gausmann'
theme = 'hugo-bearblog'
enableRobotsTXT = true
dateFormat = '1970-01-01'
dateFormat = '2006-01-02'
[params]
title = 'gaussian.dev'

View file

@ -3,6 +3,9 @@ build:
dev:
hugo --buildDrafts --buildFuture server
post filename:
hugo new blog/$(date +%Y/%m/%d)/{{filename}}.md
publish: build
neocities push --prune public