diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2016-07-24 19:13:40 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2016-07-24 19:13:40 -0400 |
| commit | b1900d6ebcc39738885f90fa9f18b28206a74947 (patch) | |
| tree | 2d4975fe0a347af7101200c48e4a8df82ca780ae /mkdocs-material/material/nav.html | |
| parent | 754ea372c66afad144988fcab2d7cf1fdbb3f2fc (diff) | |
very early checkin of template for user-docs, only a few pages filled out
Diffstat (limited to 'mkdocs-material/material/nav.html')
| -rw-r--r-- | mkdocs-material/material/nav.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mkdocs-material/material/nav.html b/mkdocs-material/material/nav.html new file mode 100644 index 00000000..c926c085 --- /dev/null +++ b/mkdocs-material/material/nav.html @@ -0,0 +1,32 @@ +{% if nav_item.children %} + <li> + <span class="section">{{ nav_item.title }}</span> + <ul> + {% for nav_item in nav_item.children %} + {% include "nav.html" %} + {% endfor %} + </ul> + </li> +{% else %} + <li> + <a class="{% if nav_item.active %}current{% endif %}" title="{{ nav_item.title }}" href="{{ nav_item.url }}"> + {{ nav_item.title }} + </a> + {% if nav_item == current_page %} + {% if h1 %} + {% set toc = (toc | first).children %} + {% endif %} + {% if toc and (toc | first) %} + <ul> + {% for toc_item in toc %} + <li class="anchor"> + <a title="{{ toc_item.title }}" href="{{ toc_item.url }}"> + {{ toc_item.title }} + </a> + </li> + {% endfor %} + </ul> + {% endif %} + {% endif %} + </li> +{% endif %}
\ No newline at end of file |
