Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
([#37](https://github.com/davep/ng2web/pull/37))
- Added better handling of see-also items that have broken offsets.
([#38](https://github.com/davep/ng2web/pull/38))
- Added better handling of guides with no menus.
([#39](https://github.com/davep/ng2web/pull/39))

## v1.1.0

Expand Down
26 changes: 14 additions & 12 deletions src/ng2web/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,20 @@

<section>

<nav class="menu box">
<ul>
{%- for menu in guide.menus %}
<li>{{ menu }}</li>
<ul>
{% for option in menu -%}
<li><a href="{{ option|urlify }}">{{ option.text }}</a></li>
{% endfor %}
</ul>
{%- endfor %}
</ul>
</nav>
{% if guide.menus %}
<nav class="menu box">
<ul>
{%- for menu in guide.menus %}
<li>{{ menu }}</li>
<ul>
{% for option in menu -%}
<li><a href="{{ option|urlify }}">{{ option.text }}</a></li>
{% endfor %}
</ul>
{%- endfor %}
</ul>
</nav>
{% endif %}

<article class="box">
{% block content %}{% endblock %}
Expand Down