I changed the way I create links to use references to a data YML file instead of relying on the capture tag and including reference to the file with the captions. Using the capture tag was highly susceptible to broken links and way too manual. See the Links topic for more detail about the new method.

This commit is contained in:
Tom Johnson
2015-09-13 16:33:16 -07:00
parent a24859dc66
commit 445b1d1f44
59 changed files with 14296 additions and 14054 deletions

49
urls.txt Normal file
View File

@ -0,0 +1,49 @@
---
layout: none
search: exclude
---
{% include custom/conditions.html %}
{% for entry in sidebar %}
{% for subcategory in entry.subcategories %}
{% for item in subcategory.items %}
{{item.url | replace: "/","" | replace: ".html", ""}}:
title: "{{item.title}}"
url: "{{item.url | replace: '/','' }}"
link: "<a href='{{item.url | replace: "/","" }}'>{{item.title}}</a>"
{% for thirdlevel in item.thirdlevel %}
{% for deeplevel in thirdlevel.thirdlevelitems %}
{{deeplevel.url | replace: "/","" | replace: ".html", ""}}:
title: "{{deeplevel.title}}"
url: "{{deeplevel.url | replace: '/','' }}"
link: "<a href='{{deeplevel.url | replace: "/","" }}'>{{deeplevel.title}}</a>"
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% for entry in topnav %}
{% for subcategory in entry.subcategories %}
{% unless subcategory.external_url %}
{{subcategory.url | replace: "/","" | replace: ".html", ""}}:
title: "{{subcategory.title}}"
url: "{{subcategory.url | replace: '/','' }}"
link: "<a href='{{subcategory.url | replace: "/","" }}'>{{subcategory.title}}</a>"
{% endunless %}
{% endfor %}
{% endfor %}
{% for entry in topnav_dropdowns %}
{% for subcategory in entry.subcategories %}
{% for subitem in subcategory.items %}
{% unless subitem.external_url %}
{{subitem.url | replace: "/","" | replace: ".html", ""}}:
title: "{{subitem.title}}"
url: "{{subitem.url | replace: '/','' }}"
link: "<a href='{{subitem.url | replace: "/","" }}'>{{subitem.title}}</a>"
{% endunless %}
{% endfor %}
{% endfor %}
{% endfor %}