aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-06-07 12:14:13 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-06-07 12:14:13 +0200
commit492f54d4e2fb3e80bc82ef2deeaa37e8293bf1d5 (patch)
tree2fb6b850ebccd0ee256a773f801b38b06e7ac930
parentworkflows/jekyll: use .ruby-version for setup-ruby action (diff)
downloadwireguard-config-492f54d4e2fb3e80bc82ef2deeaa37e8293bf1d5.tar.gz
wireguard-config-492f54d4e2fb3e80bc82ef2deeaa37e8293bf1d5.zip
fix make wget w/ live reload
A newer version of Jekyll breaks wget with --livereload and --convert-links.
-rw-r--r--.github/workflows/jekyll.yml2
-rw-r--r--Makefile7
-rw-r--r--_config.yml1
3 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml
index 8477e65..2c90ba4 100644
--- a/.github/workflows/jekyll.yml
+++ b/.github/workflows/jekyll.yml
@@ -22,7 +22,7 @@ jobs:
run: make build
- name: Check integrity
run: |
- nohup make serve &
+ nohup make serve LIVE_RELOAD=0 &
sleep 3 && make wget
- name: Set up ssh-agent
uses: webfactory/ssh-agent@v0.7.0
diff --git a/Makefile b/Makefile
index f7b8947..11df7c8 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,9 @@ ifeq ($$(origin $(1)),command line)
endif
endef
+LIVE_RELOAD ?= 1
+$(eval $(call noexpand,LIVE_RELOAD))
+
.PHONY: all
all: serve
@@ -46,7 +49,11 @@ build:
.PHONY: serve
serve:
+ifeq ($(LIVE_RELOAD),1)
+ $(jekyll) serve --livereload
+else
$(jekyll) serve
+endif
URL := http://localhost:4000/wireguard-config/
diff --git a/_config.yml b/_config.yml
index e2ffdd2..4bd3110 100644
--- a/_config.yml
+++ b/_config.yml
@@ -1,7 +1,6 @@
# Jekyll
baseurl: /wireguard-config
host: 0.0.0.0
-livereload: true
open_url: true
show_drafts: true
strict_front_matter: true