提交 6fc8bd1a 编写于 作者: C chomik

sidenav subchildren

上级 556cdc27
......@@ -21,7 +21,6 @@ docs:
changelog:
url: changelog.html
active: true
title: Changelog
icon: file-plus
label: v1.0.0
---
title: Alerts
menu: docs.alerts
---
Bootstrap provides an easy way to create predefined alert messages.
......
---
title: Avatars
menu: docs.avatars
---
Create and group avatars of various shapes and sizes with one component.
......
......@@ -36,6 +36,27 @@
</li>
{% endfor %}
{% endif %}
{% for p in item[1].children %}
<li class="nav-item">
<a href="{% if p[1].url %}{{ p[1].url }}{% else %}#{% endif %}" class="nav-link">
{{ p[1].title }}
</a>
{% if p[1].children %}
<div class="collapse navbar-collapse" id="sidebar-{{ p[0] }}">
<ul class="nav nav-sm flex-column">
{% for r in p[1].children %}
<li class="nav-item">
<a href="{% if r[1].url %}{{ r[1].url }}{% else %}#{% endif %}" class="nav-link">
{{ r[1].title }}
</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册