refactor: moved to hugo
This commit is contained in:
parent
4c6912edd0
commit
e77e5583c2
604 changed files with 1675 additions and 2279 deletions
18
Makefile
18
Makefile
|
@ -1,18 +1,2 @@
|
|||
LEKTOR_FLAGS := scss
|
||||
BUILD_OUTPUT_PATH ?= ${PWD}/public
|
||||
BUILD_STATE_PATH ?= ${PWD}/.lektor
|
||||
SERVER_PORT ?= 8080
|
||||
|
||||
server:
|
||||
LEKTOR_DEV=1 lektor server -f $(LEKTOR_FLAGS) -p $(SERVER_PORT)
|
||||
|
||||
clean:
|
||||
rm -rf public
|
||||
rm -rf assets/static/css
|
||||
|
||||
build: clean
|
||||
lektor build -f $(LEKTOR_FLAGS) --output-path $(BUILD_OUTPUT_PATH) --buildstate-path $(BUILD_STATE_PATH)
|
||||
|
||||
new_post:
|
||||
mkdir -p content/blog/$(shell date +%Y-%m-%d)-new-post
|
||||
echo "title: New post\n---\npub_date: $(shell date +%Y-%m-%d)\n---\nbody:\n\n" >> content/blog/$(shell date +%Y-%m-%d)-new-post/contents.lr
|
||||
hugo server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue