Compare commits

...

2 Commits

Author SHA1 Message Date
Simon Bruder f487979c55
Ensure deployment is always in a usable state
Prior to this change, index.html was deployed before all episode media
files which could lead to the episode already being shown as available
while the media is still being uploaded.
2022-01-22 15:21:30 +01:00
Simon Bruder 5052394ae4
Show overlay on staging 2022-01-22 15:21:30 +01:00
4 changed files with 22 additions and 1 deletions

View File

@ -3,6 +3,10 @@ set -euo pipefail
target="$1"
function rsync_command() {
rsync -varzLP --delete "result-${target}/" "schabernack@yuzuru.sbruder.xyz:${directory}" "$@"
}
case "$target" in
"staging")
nix_package="schulischer-schabernack-staging"
@ -19,4 +23,5 @@ case "$target" in
esac
nix build -o "result-${target}" -L ".#${nix_package}"
rsync -varzLP --delete "result-${target}/" "schabernack@yuzuru.sbruder.xyz:${directory}"
rsync_command --include "episodes" --include "episodes/*" --exclude "*"
rsync_command

View File

@ -61,6 +61,17 @@ h2 a {
font-size: 0.75rem;
}
#staging-overlay {
background-image: url("/assets/staging.svg");
position: fixed;
top: 0;
width: 100%;
height: 100%;
z-index: 10000;
opacity: 0.075;
pointer-events: none;
}
// noscript fallbacks
.podlove-player > audio {

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@ -27,6 +27,9 @@
{%- endblock metadata %}
</head>
<body>
{%- if config.base_url is containing("staging") %}
<div id="staging-overlay"></div>
{%- endif %}
<div class="container has-background-white" id="page-wrapper">
{%- block banner %}
<a href="{{ get_url(path="/") }}"><img id="banner" src="{{ get_url(path="assets/banner.jpg") | safe }}" alt="Banner von {{ config.title }}"></a>