Make it more convenient to create a new blog post.
This commit is contained in:
parent
b42dab2cd8
commit
d61fc79b5f
3 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
+++
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
date = {{ .Date }}
|
||||
date = {{ dateFormat "2006-01-02" .Date }}
|
||||
draft = true
|
||||
+++
|
|
@ -5,7 +5,7 @@ author = 'Adam Gausmann'
|
|||
theme = 'hugo-bearblog'
|
||||
enableRobotsTXT = true
|
||||
|
||||
dateFormat = '1970-01-01'
|
||||
dateFormat = '2006-01-02'
|
||||
|
||||
[params]
|
||||
title = 'gaussian.dev'
|
||||
|
|
3
justfile
3
justfile
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue