2016-09-07 16:10:48 -04:00
|
|
|
{% comment %}Get links from each sidebar, as listed in the _config.yml file under sidebars{% endcomment %}
|
|
|
|
|
|
|
|
{% for sidebar in site.sidebars %}
|
|
|
|
{% for entry in site.data.sidebars[sidebar].entries %}
|
|
|
|
{% for folder in entry.folders %}
|
|
|
|
{% for folderitem in folder.folderitems %}
|
2017-11-24 09:51:08 +01:00
|
|
|
{% if folderitem.url %}
|
2016-09-07 16:10:48 -04:00
|
|
|
{% if folderitem.url contains "html#" %}
|
2017-11-24 09:51:08 +01:00
|
|
|
[{{ folderitem.url | remove: "/" }}]: PageAnchorLink {{folderitem.url | remove: "/"}}
|
2016-09-07 16:10:48 -04:00
|
|
|
{% else %}
|
2017-11-24 09:51:08 +01:00
|
|
|
[{{ folderitem.url | remove: "/" | remove: ".html" }}]: {{ folderitem.url | remove: "/" }}
|
|
|
|
{% endif %}
|
2016-09-07 16:10:48 -04:00
|
|
|
{% endif %}
|
|
|
|
{% for subfolders in folderitem.subfolders %}
|
|
|
|
{% for subfolderitem in subfolders.subfolderitems %}
|
|
|
|
[{{subfolderitem.url | remove: "/" | remove: ".html"}}]: {{subfolderitem.url | remove: "/"}}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
{% comment %} Get links from topnav {% endcomment %}
|
|
|
|
|
|
|
|
{% for entry in site.data.topnav.topnav %}
|
|
|
|
{% for item in entry.items %}
|
|
|
|
{% if item.external_url == null %}
|
|
|
|
[{{item.url | remove: "/" | remove: ".html"}}]: {{item.url | remove: "/"}}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% comment %}Get links from topnav dropdowns {% endcomment %}
|
|
|
|
|
|
|
|
{% for entry in site.data.topnav.topnav_dropdowns %}
|
|
|
|
{% for folder in entry.folders %}
|
|
|
|
{% for folderitem in folder.folderitems %}
|
|
|
|
{% if folderitem.external_url == null %}
|
|
|
|
[{{folderitem.url | remove: "/" | remove: ".html"}}]: {{folderitem.url | remove: "/"}}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
|