diff options
author | rfjakob | 2018-01-31 09:26:45 +0100 |
---|---|---|
committer | GitHub | 2018-01-31 09:26:45 +0100 |
commit | 7168f06d86ccebdeba3fb2fe685d3ff0298b4264 (patch) | |
tree | f5de197263681ddf9a076cc93ab5996db68b19e4 /gocryptfs-readthedocs/nav.html | |
parent | 246c2639be0fb9fb027b1878479d86cd90b7731a (diff) | |
parent | 9c73c07fda84fd31fd37fd2f9bf56312ca0896c8 (diff) |
Merge pull request #4 from taysu/mkdocs-updates
Updates so site builds with mkdocs 0.17.2
Diffstat (limited to 'gocryptfs-readthedocs/nav.html')
-rw-r--r-- | gocryptfs-readthedocs/nav.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gocryptfs-readthedocs/nav.html b/gocryptfs-readthedocs/nav.html new file mode 100644 index 0000000..6b6d7d8 --- /dev/null +++ b/gocryptfs-readthedocs/nav.html @@ -0,0 +1,22 @@ +{%- if nav_item.url %} + <a class="{% if nav_item.active%}current{%endif%}" href="{{ nav_item.url }}">{{ nav_item.title }}</a> +{%- else %} + <span class="caption-text">{{ nav_item.title }}</span> +{%- endif %} + +{%- if nav_item == page or nav_item.children %} + <ul class="subnav"> + {%- if nav_item == page %} + {% include 'toc.html' %} + {%- endif %} + {%- if nav_item.children %} + {%- set navlevel = navlevel + 1%} + {%- for nav_item in nav_item.children %} + <li class="{% if navlevel > 2 %}toctree-l{{ navlevel }}{% endif %}{% if nav_item.active%} current{%endif%}"> + {% include 'nav.html' %} + </li> + {%- endfor %} + {%- set navlevel = navlevel - 1%} + {%- endif %} + </ul> +{%- endif %} |