blog/templates/macros/layout.html

13 lines
474 B
HTML
Raw Normal View History

2018-08-08 23:53:47 -07:00
{% macro navbar(config) %}
2019-05-06 05:00:53 -05:00
<div id="header" class="container">
<a href="/" id="title" class="title nocolorlink">{{ config.title }}</a>
2018-08-08 23:53:47 -07:00
<div id="nav">
{% for link in config.extra.nav_links %}
2019-05-06 05:00:53 -05:00
{% if loop.index > 1 %}&middot;{% endif %}
2019-06-29 13:04:30 -05:00
<a href="{{ link.url | safe }}" class="link">{{ link.text | replace(from=" ", to="&nbsp;") | safe }}</a>
2018-08-08 23:53:47 -07:00
{% endfor %}
</div>
</div>
{% endmacro navbar %}