Make website output relocateable
With this change the website is prepared to be served from a sub-directory on the webserver, e.g. from Gitlab Pages. To archive this we need to do the following: * Load our static assets from a relative URL. * Make sure thumbnails and images are loaded from a relative URL. But: If running from the live-server media is presented from a slightly different URL. In this case we do not want to modify the thumbnail URLs.
Showing
- Makefile 1 addition, 1 deletionMakefile
- content/impressum.html 1 addition, 1 deletioncontent/impressum.html
- plugins/relative_media_urls.py 3 additions, 0 deletionsplugins/relative_media_urls.py
- plugins/thumbnails.py 314 additions, 0 deletionsplugins/thumbnails.py
- settings-server.py 1 addition, 0 deletionssettings-server.py
- settings.py 4 additions, 1 deletionsettings.py
- theme/sass/hoa.scss 2 additions, 2 deletionstheme/sass/hoa.scss
- theme/templates/base.html 2 additions, 2 deletionstheme/templates/base.html
- theme/templates/page.html 5 additions, 5 deletionstheme/templates/page.html
plugins/relative_media_urls.py
0 → 100644
plugins/thumbnails.py
0 → 100644
settings-server.py
0 → 100644
Please register or sign in to comment