Compare commits
2 Commits
3b35b1e4ee
...
e9e7cabebb
Author | SHA1 | Date |
---|---|---|
Emil Miler | e9e7cabebb | 4 years ago |
Emil Miler | 10b89de940 | 4 years ago |
@ -0,0 +1,2 @@
|
||||
+++
|
||||
+++
|
@ -0,0 +1,2 @@
|
||||
+++
|
||||
+++
|
@ -0,0 +1,15 @@
|
||||
{% macro nav(type) %}
|
||||
{% if config.extra.nav %}
|
||||
<nav>
|
||||
<ul>
|
||||
{% for item in config.extra.nav %}
|
||||
{% if type == "short" %}
|
||||
<li><a href="{{ item.path }}">{{ item.name }}</a></li>
|
||||
{% elif type == "long" %}
|
||||
<li><a href="{{ item.path }}">{{ item.desc }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
{% endmacro nav %}
|
@ -0,0 +1,5 @@
|
||||
{% extends "index.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ page.content | safe }}
|
||||
{% endblock content %}
|
@ -0,0 +1,2 @@
|
||||
{% import "macros.html" as macros %}
|
||||
{{ macros::nav(type=type) }}
|
Reference in New Issue