summaryrefslogtreecommitdiffstatsci
path: root/_includes/menu_item.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/menu_item.html')
-rw-r--r--_includes/menu_item.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/_includes/menu_item.html b/_includes/menu_item.html
new file mode 100644
index 0000000..fc14e4b
--- /dev/null
+++ b/_includes/menu_item.html
@@ -0,0 +1,19 @@
+<ul>
+ {% for item in include.collection %}
+ <li>
+ {% if item.url != false %}
+ <a href="{{ item.url }}">{{ item.title }}</a>
+ {% else %}
+ {{ item.title }}
+ {% endif %}
+ </li>
+
+ {% if item.post_list == true %}
+ {% include post_list.html %}
+ {% endif %}
+
+ {% if item.entries != blank %}
+ {% include menu_item.html collection=item.entries %}
+ {% endif %}
+ {% endfor %}
+</ul> \ No newline at end of file