Skip to content

Commit

Permalink
Add a development warning banner before building the development website
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed May 17, 2024
1 parent 232523b commit ddcb3c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions development_banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div style="background-color:red; color: white; font-size: 2rem; text-align: center; position: fixed; width: 100%; margin-bottom: 50rem;">
THIS IS A DEVELOPMENT WEBSITE, please go to <a href="https://iscsc.fr" style="font-weight: bold; color:darkslategrey;">https://iscsc.fr</a>
</div>

0 comments on commit ddcb3c5

Please sign in to comment.