From aca86e2e04325d8412c0b610ebacb8eab2722bec Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Sun, 10 Jul 2022 11:15:19 +0100 Subject: [PATCH] Configure base template to use bootstrap --- flangr/static/css/base.css | 3 +++ flangr/templates/base.html | 45 +++++++++++++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 flangr/static/css/base.css diff --git a/flangr/static/css/base.css b/flangr/static/css/base.css new file mode 100644 index 0000000..c37ca54 --- /dev/null +++ b/flangr/static/css/base.css @@ -0,0 +1,3 @@ +.img-full { + object-fit: contain; +} diff --git a/flangr/templates/base.html b/flangr/templates/base.html index 0f1d64b..302257b 100644 --- a/flangr/templates/base.html +++ b/flangr/templates/base.html @@ -1,6 +1,49 @@ +{% load django_bootstrap5 %} +{% load static %} + Flangr + + {% bootstrap_css %} + {% block extracss %}{% endblock extracss %} - {% block content %}{% endblock content %} + + {% block nav %} + + {% endblock nav %} + {% bootstrap_messages %} + {% block content %}{% endblock content %} +