add static file redirects

This commit is contained in:
Jeppe Ernst 2018-04-22 10:36:18 +02:00
parent 6cde0f79a4
commit 78336a8203
2 changed files with 9 additions and 1 deletions

8
.htaccess Normal file
View file

@ -0,0 +1,8 @@
# Redirect to new locations
Redirect /vedtaegter.pdf /assets/files/vedtaegter.pdf
Redirect /PapesBrev.pdf /assets/files/PapesBrevTilTeleindustrien.pdf
Redirect /PapeLyver.pdf /assets/files/PapeLyver.pdf
Redirect /FT-notat.pdf /assets/files/FT-notat.pdf
# template for redirects (never uncomment and use this line as is!)
#Redirect / /assets/files/

View file

@ -27,7 +27,7 @@ If not using Docker, it's **important** that you build the site with `JEKYLL_ENV
Make sure that you have created a file in `_scripts/` called `config.sh`, (protip: just duplicate the `config-example.sh` file, and set the correct values, you should only need to change username and password.) Then you can build the site ande deploy it by running `docker-compose -f docker-compose-deploy.yml up` Make sure that you have created a file in `_scripts/` called `config.sh`, (protip: just duplicate the `config-example.sh` file, and set the correct values, you should only need to change username and password.) Then you can build the site ande deploy it by running `docker-compose -f docker-compose-deploy.yml up`
This will execute a Docker container and do the following: This will execute a Docker container and do the following:
1. Build the site **but** fail if there are any Frontmatter 1. Build the site **but** fail if there are any Frontmatter errors
2. Upload the contents of the `_site/` directory to the FTP server 2. Upload the contents of the `_site/` directory to the FTP server
3. That's it… 3. That's it…