Compare commits
2 Commits
34d7ef0272
...
999a20534d
Author | SHA1 | Date |
---|---|---|
Dirk Heilig | 999a20534d | |
Dirk Heilig | de88fa320c |
8
Makefile
8
Makefile
|
@ -1,16 +1,17 @@
|
||||||
.PHONY: build minify clean release deploy_test
|
.PHONY: build minify clean release deploy_test
|
||||||
|
|
||||||
|
BASEURL ?= https://c3re.de
|
||||||
|
|
||||||
release: build minify
|
release: build minify
|
||||||
|
|
||||||
build: clean
|
build: clean
|
||||||
hugo --gc --minify --cleanDestinationDir
|
hugo --gc --minify --cleanDestinationDir -b "${BASEURL}" --enableGitInfo --panicOnWarning
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf public dist
|
rm -rf public dist
|
||||||
|
|
||||||
minify: dist build
|
minify: dist build
|
||||||
minify -a -r -o dist/ public/. -q --exclude "public/js/jquery-3.7.1.min.js"
|
minify -a -r -o dist/ public/. -q --exclude "public/js/jquery-3.7.1.min.js" --html-keep-document-tags
|
||||||
cp -rp public/js/jquery-3.7.1.min.js dist/public/js/jquery-3.7.1.min.js
|
cp -rp public/js/jquery-3.7.1.min.js dist/public/js/jquery-3.7.1.min.js
|
||||||
mv dist/public/* dist/
|
mv dist/public/* dist/
|
||||||
rm -rf dist/public
|
rm -rf dist/public
|
||||||
|
@ -18,5 +19,6 @@ minify: dist build
|
||||||
dist:
|
dist:
|
||||||
mkdir dist
|
mkdir dist
|
||||||
|
|
||||||
deploy_test: release
|
deploy_test:
|
||||||
|
make BASEURL=https://c3retest.shnbk.de release
|
||||||
rsync -rv --delete dist/* shnbk.de:domains/c3retest.shnbk.de/htdocs
|
rsync -rv --delete dist/* shnbk.de:domains/c3retest.shnbk.de/htdocs
|
|
@ -1,8 +1,7 @@
|
||||||
baseURL = "https://hugo-test.c3re.de/"
|
baseURL = "https://www.c3re.de"
|
||||||
languageCode = "en-us"
|
languageCode = "de-de"
|
||||||
title = "c3RE"
|
title = "c3RE"
|
||||||
theme = "hugo-theme-flat"
|
theme = "hugo-theme-flat"
|
||||||
# themeDir = '../..'
|
|
||||||
defaultContentLanguage = "de"
|
defaultContentLanguage = "de"
|
||||||
relativeURLs = true
|
relativeURLs = true
|
||||||
style = "green"
|
style = "green"
|
||||||
|
@ -23,7 +22,7 @@ url = "/codeweek"
|
||||||
|
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
name = "Werkzeuge"
|
name = "Werkzeuge"
|
||||||
url = "https://dienste.c3re.de"
|
url = "https://dienste.c3re.de/"
|
||||||
weight = 90
|
weight = 90
|
||||||
|
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
|
|
Loading…
Reference in New Issue