blog/templates/macros/layout.html
2019-06-29 13:04:30 -05:00

12 lines
474 B
HTML

{% macro navbar(config) %}
<div id="header" class="container">
<a href="/" id="title" class="title nocolorlink">{{ config.title }}</a>
<div id="nav">
{% for link in config.extra.nav_links %}
{% if loop.index > 1 %}&middot;{% endif %}
<a href="{{ link.url | safe }}" class="link">{{ link.text | replace(from=" ", to="&nbsp;") | safe }}</a>
{% endfor %}
</div>
</div>
{% endmacro navbar %}