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 }}'
|
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
date = {{ .Date }}
|
date = {{ dateFormat "2006-01-02" .Date }}
|
||||||
draft = true
|
draft = true
|
||||||
+++
|
+++
|
|
@ -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'
|
||||||
|
|
3
justfile
3
justfile
|
@ -4,5 +4,8 @@ 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue