Gedanken für die Hälfte

Site Specific Templates in BSSG

Veröffentlicht am: von Andreas Schödl

Aktualisiert am: • 1 Min. Lesezeit

Messing around a bit more with BSSG, I thought, huh, multi-site support ist right here, but the templates folder for header and footer exists only in the installation folder. Seeing how thoughtful everything else is designed, I copied the templates folder over to my site directory, made some changes, added TEMPLATES_DIR just below OUTPUT_DIR

OUTPUT_DIR="/home/inpc/(...)/output" # Site output directory
TEMPLATES_DIR="/home/inpc/(...)/templates"

to my config.sh.local - and would you know it, It Just Works!

Additionally, templates/header.html and footer.html are essentially the frame into which your site is rendered. That means that the HTML <head> section is available for you (okay, me) to mess with in header.html. It uses what looks like Jinja2 variable syntax.