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 }}' title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }} date = {{ dateFormat "2006-01-02" .Date }}
draft = true draft = true
+++ +++

View file

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

View file

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