diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-07 10:56:02 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-06-07 10:56:27 +0200 |
commit | 4ccad582f01cbfe19956fc6bfe589e599e7e85d3 (patch) | |
tree | 4b4778c95aea3f3bcb8bc7973113d68697d92df6 | |
parent | upgrade to Jekyll 4 (diff) | |
download | jekyll-theme-4ccad582f01cbfe19956fc6bfe589e599e7e85d3.tar.gz jekyll-theme-4ccad582f01cbfe19956fc6bfe589e599e7e85d3.zip |
fix make wget w/ live reload
A newer version of Jekyll breaks wget with --livereload and
--convert-links.
-rw-r--r-- | .github/workflows/ci.yml | 2 | ||||
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | _config.yml | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 936f760..c896013 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,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 @@ -20,6 +20,9 @@ ifeq ($$(origin $(1)),command line) endif endef +LIVE_RELOAD ?= 1 +$(eval $(call noexpand,LIVE_RELOAD)) + .PHONY: all all: serve @@ -39,7 +42,11 @@ build: .PHONY: serve serve: +ifeq ($(LIVE_RELOAD),1) + $(jekyll) serve --livereload +else $(jekyll) serve +endif URL := http://localhost:4000/jekyll-theme/ diff --git a/_config.yml b/_config.yml index 64cac30..5a45eb7 100644 --- a/_config.yml +++ b/_config.yml @@ -1,7 +1,6 @@ # Jekyll baseurl: /jekyll-theme host: 0.0.0.0 -livereload: true open_url: true show_drafts: true strict_front_matter: true |