Compare commits

...

2 Commits

Author SHA1 Message Date
Dirk Heilig 999a20534d make minifier more kompatible, make automated dev-build 2024-01-18 18:09:45 +01:00
Dirk Heilig de88fa320c prod settings 2024-01-18 18:09:16 +01:00
2 changed files with 8 additions and 7 deletions

View File

@ -1,16 +1,17 @@
.PHONY: build minify clean release deploy_test
BASEURL ?= https://c3re.de
release: build minify
build: clean
hugo --gc --minify --cleanDestinationDir
hugo --gc --minify --cleanDestinationDir -b "${BASEURL}" --enableGitInfo --panicOnWarning
clean:
rm -rf public dist
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
mv dist/public/* dist/
rm -rf dist/public
@ -18,5 +19,6 @@ minify: dist build
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

View File

@ -1,8 +1,7 @@
baseURL = "https://hugo-test.c3re.de/"
languageCode = "en-us"
baseURL = "https://www.c3re.de"
languageCode = "de-de"
title = "c3RE"
theme = "hugo-theme-flat"
# themeDir = '../..'
defaultContentLanguage = "de"
relativeURLs = true
style = "green"
@ -23,7 +22,7 @@ url = "/codeweek"
[[menus.main]]
name = "Werkzeuge"
url = "https://dienste.c3re.de"
url = "https://dienste.c3re.de/"
weight = 90
[[menus.main]]