blog/templates/macros/layout.html

13 lines
474 B
HTML
Raw Permalink Normal View History

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