diff --git a/uffd/default_config.cfg b/uffd/default_config.cfg index b51d9c9f5ba6d05eb8c7490a4e03b099157f1b88..9ccb35cbe9e4aa626530291411b9bdc686be92e8 100644 --- a/uffd/default_config.cfg +++ b/uffd/default_config.cfg @@ -29,7 +29,7 @@ ROLES_BASEROLES=['base'] SQLALCHEMY_TRACK_MODIFICATIONS=False -FOOTER_CONTENT='<div class="container"><span class="text-muted">Place sticky footer content here.</span></div>' +FOOTER_LINKS=[{"url": "https://example.com", "title": "example"}] # do NOT set in production diff --git a/uffd/templates/base.html b/uffd/templates/base.html index 815225ac7a82e0e99c57f261e0a71f63ee6b9c26..66f90a7d18ee2a6c1162b3227a9241c627ed4418 100644 --- a/uffd/templates/base.html +++ b/uffd/templates/base.html @@ -97,7 +97,13 @@ <footer class="footer"> {% block footer %} - {{ config["FOOTER_CONTENT"]|safe }} + <div class="container"> + <ul class="list-inline"> + {% for link in config["FOOTER_LINKS"]%} + <li class="list-inline-item"><a href="{{ link.url }}">{{ link.title }}</a></li> + {% endfor %} + </ul> + </div> {% endblock footer %} </footer>