fix: avoid loading analytics in localhost
This commit is contained in:
parent
453486761d
commit
672c34aa1a
7 changed files with 38 additions and 30 deletions
6
Makefile
6
Makefile
|
@ -4,7 +4,7 @@ BUILD_STATE_PATH ?= ${PWD}/.lektor
|
|||
SERVER_PORT ?= 8080
|
||||
|
||||
server:
|
||||
lektor server -f $(LEKTOR_FLAGS) -p $(SERVER_PORT)
|
||||
LEKTOR_DEV=1 lektor server -f $(LEKTOR_FLAGS) -p $(SERVER_PORT)
|
||||
|
||||
clean:
|
||||
rm -rf public
|
||||
|
@ -12,3 +12,7 @@ clean:
|
|||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue