-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
25 lines (24 loc) · 919 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
IP = http://$(shell ipconfig getifaddr en0)
build:
@rm -rf docs/ && hugo --minify --printUnusedTemplates \
--printI18nWarnings --printMemoryUsage --printPathWarnings && \
cp CNAME docs/CNAME && \
touch docs/.nojekyll && \
cp docs/en/404.html docs/404.html
netlify:
@rm -rf docs/ && hugo -b $(DEPLOY_PRIME_URL) --minify --printUnusedTemplates \
--printI18nWarnings --printMemoryUsage --printPathWarnings && \
cp CNAME docs/CNAME && \
touch docs/.nojekyll && \
cp docs/en/404.html docs/404.html
serve:
hugo server -D -F --minify \
--disableFastRender --printUnusedTemplates \
--printI18nWarnings --printMemoryUsage --printPathWarnings \
--bind 0.0.0.0 --port 1313 --baseURL $(IP)
publish: build
@git add . && \
git commit -sm "build `date -R #--rfc-3339=ns`" && \
git push origin master
gen-utm:
@echo "?utm_medium=organic_social&utm_term=social_media&utm_content=text&utm_source=link_clavinjune_dev"