pmd/docs/_includes/sidebar.html

64 lines
2.6 KiB
HTML
Raw Normal View History

2016-09-07 16:10:48 -04:00
{% include custom/sidebarconfigs.html %}
<ul id="mysidebar" class="nav">
<li class="sidebarTitle">{{site.sidebar_title}} {{site.pmd.version}}</li>
<div class="sidebarTitleDate">Release date: {{site.pmd.date | date: "%d-%B-%Y" }}</div>
2016-09-07 16:10:48 -04:00
{% for entry in sidebar %}
{% for folder in entry.folders %}
{% if folder.output contains "web" %}
<li>
2017-08-18 10:33:43 +02:00
{% if folder.url %}
<a href="{{ folder.url | remove: "/" }}">{{ folder.title }}</a>
{% else %}
2016-09-07 16:10:48 -04:00
<a href="#">{{ folder.title }}</a>
2017-08-18 10:33:43 +02:00
{% endif %}
2016-09-07 16:10:48 -04:00
<ul>
{% for folderitem in folder.folderitems %}
{% if folderitem.output contains "web" %}
{% unless folderitem.subfolders %}
{% if folderitem.external_url %}
<li><a href="{{folderitem.external_url}}" target="_blank">{{folderitem.title}}</a></li>
{% elsif folderitem.url and page.url == folderitem.url or page.sidebaractiveurl == folderitem.url %}
<li class="active"><a href="{{folderitem.url | remove: "/"}}">{{folderitem.title}}</a></li>
{% elsif folderitem.url %}
<li><a href="{{folderitem.url | remove: "/"}}">{{folderitem.title}}</a></li>
{% else %}
<li><a href="#">{{folderitem.title}}</a></li>
{% endif %}
2016-09-07 16:10:48 -04:00
{% else %}
{% for subfolders in folderitem.subfolders %}
{% if subfolders.output contains "web" %}
<li class="subfolders">
<a href="#">{{ subfolders.title }}</a>
<ul>
{% for subfolderitem in subfolders.subfolderitems %}
{% if subfolderitem.output contains "web" %}
{% if subfolderitem.external_url %}
<li><a href="{{subfolderitem.external_url}}" target="_blank">{{subfolderitem.title}}</a></li>
{% elsif page.url == subfolderitem.url %}
<li class="active"><a href="{{subfolderitem.url | remove: "/"}}">{{subfolderitem.title}}</a></li>
{% else %}
<li><a href="{{subfolderitem.url | remove: "/"}}">{{subfolderitem.title}}</a></li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
</li>
{% endif %}
{% endfor %}
{% endunless %}
2016-09-07 16:10:48 -04:00
{% endif %}
{% endfor %}
</ul>
</li>
{% endif %}
2016-09-07 16:10:48 -04:00
{% endfor %}
{% endfor %}
</ul>