From ddcb3c530c55590bb1991d181e5f30e40cb42a59 Mon Sep 17 00:00:00 2001 From: ctmbl Date: Sat, 18 May 2024 00:01:14 +0200 Subject: [PATCH] Add a development warning banner before building the development website --- .github/workflows/deploy_dev.yml | 4 ++++ development_banner.html | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 development_banner.html diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index bf10aa1..7de6f99 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -20,6 +20,10 @@ jobs: with: submodules: recursive + - name: 💉 Inject Development Banner + run: | + cat ./development_banner.html >> ./src/themes/poison/layouts/partials/sidebar/sidebar.html + # Build the static website with the provided docker-compose rules, overriding environment variables to build to /build/blog/dev # Note: /!\ we do not override HUGO_ENV or HUGO_ENVIRONMENT, this is done on purpose to avoid triggering themes' behavior which # are not intended for production and could present security risks diff --git a/development_banner.html b/development_banner.html new file mode 100644 index 0000000..b5323b4 --- /dev/null +++ b/development_banner.html @@ -0,0 +1,4 @@ +
+ THIS IS A DEVELOPMENT WEBSITE, please go to https://iscsc.fr +
+ \ No newline at end of file