website/Makefile

17 lines
848 B
Makefile
Raw Normal View History

2022-03-01 10:00:18 +00:00
.PHONY: build
2020-11-06 22:16:12 +00:00
build: build-openring
hugo
2022-03-01 10:00:18 +00:00
.PHONY: build-openring
2020-11-06 22:16:12 +00:00
build-openring:
./bin/openring-create --input assets/templates/openring-input.html --output layouts/partials/openring.html
2020-11-06 22:16:12 +00:00
2022-03-01 10:00:18 +00:00
.PHONY: serve
serve: build-openring
ls assets/templates/openring-input.html | LAST_COMMIT_DATE=$(git log -1 --format=%cI) hugo serve --buildFuture --verboseLog
2021-01-20 07:01:56 +00:00
2022-03-01 10:00:18 +00:00
.PHONY: update
2021-01-20 07:01:56 +00:00
update:
curl --silent --location https://api.github.com/repos/foo-dogsquared/hugo-theme-more-contentful/commits | jq '.[0].sha' --raw-output | xargs --replace='{}' hugo mod get -u "github.com/foo-dogsquared/hugo-theme-more-contentful@{}" && hugo mod tidy
curl --silent --location https://api.github.com/repos/foo-dogsquared/hugo-web-feeds/commits | jq '.[0].sha' --raw-output | xargs --replace='{}' hugo mod get -u "github.com/foo-dogsquared/hugo-web-feeds@{}" && hugo mod tidy