-
Notifications
You must be signed in to change notification settings - Fork 60
/
Makefile
33 lines (22 loc) · 1.04 KB
/
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
26
27
28
29
30
31
32
33
EXAMPLE_SITE := exampleSite
CONFIG_GH_PAGES := config_for_github_pages.toml
CONFIG := config.toml
THEMES := ../../
default: check_github_pages
github_pages:
hugo -s ${EXAMPLE_SITE} --config ${CONFIG_GH_PAGES} --themesDir ${THEMES}
check_github_pages: github_pages
diff -I 'name="generator"' exampleSite/public/index.html test_reference/index.html
server:
hugo -s ${EXAMPLE_SITE} --themesDir ${THEMES} server
serverNoAlbum:
hugo -s exampleSiteNoAlbum --themesDir ${THEMES} server
no_canonify_server_long_url_test:
hugo -s ${EXAMPLE_SITE} --themesDir ${THEMES} server -b http://localhost:1313/themes/autophugo/
canonify_server_long_url_test:
export HUGO_CANONIFYURLS=true && hugo -s ${EXAMPLE_SITE} --themesDir ${THEMES} server -b http://localhost:1313/themes/autophugo/
no_canonify_server_short_url_test:
hugo -s ${EXAMPLE_SITE} --themesDir ${THEMES} server -b http://localhost:1313/
canonify_server_short_url_test:
export HUGO_CANONIFYURLS=true && hugo -s ${EXAMPLE_SITE} --themesDir ${THEMES} server -b http://localhost:1313/
.PHONY: public server