From decb3c37fe6bcfc1db11a78f94494d2ef840185f Mon Sep 17 00:00:00 2001 From: B Kleinen Date: Fri, 24 Sep 2021 19:33:59 +0200 Subject: [PATCH] add environment specific content --- .github/workflows/gh-pages.yml | 2 +- config.toml => config/_default/config.toml | 2 +- config/local/config.toml | 1 + config/staging/config.toml | 7 +++++++ makefile | 10 ++++++++++ themes/hugo-hero-theme | 2 +- 6 files changed, 21 insertions(+), 3 deletions(-) rename config.toml => config/_default/config.toml (95%) create mode 100644 config/local/config.toml create mode 100644 config/staging/config.toml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index da24264..9e8cd9e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -22,7 +22,7 @@ jobs: extended: true - name: Build - run: hugo --minify --baseURL=https://seuh2022.github.io/seuh2022-website/ + run: hugo --minify -e staging - name: Deploy uses: peaceiris/actions-gh-pages@v3 diff --git a/config.toml b/config/_default/config.toml similarity index 95% rename from config.toml rename to config/_default/config.toml index c0763ce..191a787 100644 --- a/config.toml +++ b/config/_default/config.toml @@ -1,4 +1,4 @@ -baseURL = "www.seuh.org/seuh2022" +baseURL = "https://www.seuh.org/seuh2022/" languageCode = "de-de" title = "SEUH 2022" theme = "hugo-hero-theme" diff --git a/config/local/config.toml b/config/local/config.toml new file mode 100644 index 0000000..9252800 --- /dev/null +++ b/config/local/config.toml @@ -0,0 +1 @@ +baseURL = "file:///Users/kleinen/mine/current/htw/seuh/website/seuh2022-website" diff --git a/config/staging/config.toml b/config/staging/config.toml new file mode 100644 index 0000000..e938b8b --- /dev/null +++ b/config/staging/config.toml @@ -0,0 +1,7 @@ +baseURL = "https://seuh2022.github.io/seuh2022-website/" +title = "STAGING --- SEUH 2022" + +[params] + printEnvironment=true + environment="staging" + productionSite="https://www.seuh.org/seuh2022/" diff --git a/makefile b/makefile index 1ec89a9..906b79a 100644 --- a/makefile +++ b/makefile @@ -4,3 +4,13 @@ push: hugo: open http://localhost:1313/seuh2022 hugo -D -p 1313 server +github: + open http://localhost:1414/seuh2022-website + hugo --baseURL=http://localhost:1414/seuh2022-website/ -p 1414 -e staging server +stuttgart: + open http://localhost:1515/seuh2022/ + hugo --baseURL=http://localhost:1515/seuh2022/ -p 1515 -e production server +build_production: + hugo --minify +build_staging: + hugo --minify -e staging diff --git a/themes/hugo-hero-theme b/themes/hugo-hero-theme index f6b0e4a..3d8b6c0 160000 --- a/themes/hugo-hero-theme +++ b/themes/hugo-hero-theme @@ -1 +1 @@ -Subproject commit f6b0e4a21baf60aa47bd1e43cc79e7ad4c532c6e +Subproject commit 3d8b6c05ef11b92e97cac6893ae6a72396aaab1a