fix: avoid loading analytics in localhost

This commit is contained in:
Felipe M 2024-03-18 18:16:30 +01:00
parent 453486761d
commit 672c34aa1a
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
7 changed files with 38 additions and 30 deletions

View file

@ -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