website/Makefile

21 lines
912 B
Makefile
Raw Normal View History

2022-03-01 10:00:18 +00:00
.PHONY: build
build:
2023-02-26 06:06:28 +00:00
hugo --destination public
2020-11-06 22:16:12 +00:00
.PHONY: build-draft
build-draft:
hugo --environment development --buildDrafts --buildFuture --buildExpired --destination public
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
2023-02-25 07:24:08 +00:00
serve:
hugo serve --buildFuture --verboseLog --destination public
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
2023-02-25 07:24:08 +00:00
curl --silent --location https://api.github.com/repos/foo-dogsquared/hugo-mod-web-feeds/commits | jq '.[0].sha' --raw-output | xargs --replace='{}' hugo mod get -u "github.com/foo-dogsquared/hugo-mod-web-feeds@{}" && hugo mod tidy