diff --git a/Makefile b/Makefile index ee5d7e0..7b9f01f 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ THEME_VERSION := v0.16.1 THEME := hugo-geekblog BASEDIR := . THEMEDIR := $(BASEDIR)/themes +YEAR := $(shell date +"%Y") .PHONY: all all: doc @@ -18,3 +19,8 @@ doc-assets: .PHONY: clean clean: rm -rf $(THEMEDIR) + +.PHONY: hugo-new +hugo-new: + hugo new posts/$(YEAR)/$(title)/index.md ; \ + mkdir -p content/posts/$(YEAR)/$(title)/images diff --git a/archetypes/posts.md b/archetypes/posts.md new file mode 100644 index 0000000..575c26e --- /dev/null +++ b/archetypes/posts.md @@ -0,0 +1,13 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +authors: + - robert-kaussow +tags: [] +resources: + - name: feature + src: "images/feature.jpg" + params: + anchor: Center + credits: "" +---