Skip to content

Commit

Permalink
Fix netlify redirect page
Browse files Browse the repository at this point in the history
  • Loading branch information
carstene1ns committed Apr 6, 2024
1 parent 1cf94e6 commit 6996619
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .netlify/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
set -e

if [ "x$1" == "xredirect" ]; then
# remove content
rm -rf content
# remove pages content
find content/ -type f -a \( -name '*.md' -o -name '*.html' \) --delete

# make redirect page default
mkdir content
cp .netlify/redirect.md content/index.md

# relocate assets
sed -r 's#(href|src)="/#\1="https://easyrpg.org/#g' -i layouts/default.slim
fi

# correct url
Expand Down

0 comments on commit 6996619

Please sign in to comment.