Skip to content
Snippets Groups Projects
Verified Commit c1ce5425 authored by nd's avatar nd
Browse files

set a footer link list via config and not raw html

parent 71e390e3
Branches
Tags
No related merge requests found
...@@ -29,7 +29,7 @@ ROLES_BASEROLES=['base'] ...@@ -29,7 +29,7 @@ ROLES_BASEROLES=['base']
SQLALCHEMY_TRACK_MODIFICATIONS=False 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 # do NOT set in production
......
...@@ -97,7 +97,13 @@ ...@@ -97,7 +97,13 @@
<footer class="footer"> <footer class="footer">
{% block 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 %} {% endblock footer %}
</footer> </footer>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment