Make navigation menu reusable
This commit is contained in:
parent
71a8843ecd
commit
3f7dcaa2ec
|
@ -1,97 +1,16 @@
|
|||
<div class="unit one-fifth hide-on-mobiles">
|
||||
<aside>
|
||||
<h4>Getting Started</h4>
|
||||
<ul>
|
||||
<li class="{% if page.title == 'Welcome' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/home/">Welcome</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Quick-start guide' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/quickstart/">Quick-start guide</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Installation' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/installation/">Installation</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Basic Usage' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/usage/">Basic Usage</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Directory structure' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/structure/">Directory structure</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Configuration' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/configuration/">Configuration</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% include docs_ul.html items='home quickstart installation usage structure configuration' %}
|
||||
<h4>Your Content</h4>
|
||||
<ul>
|
||||
<li class="{% if page.title == 'Front-matter' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/frontmatter/">Front-matter</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Writing posts' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/posts/">Writing posts</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Working with drafts' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/drafts/">Working with drafts</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Creating pages' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/pages/">Creating pages</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Variables' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/variables/">Variables</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Blog migrations' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/migrations/">Blog migrations</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% include docs_ul.html items='frontmatter posts drafts pages variables migrations' %}
|
||||
<h4>Customization</h4>
|
||||
<ul>
|
||||
<li class="{% if page.title == 'Templates' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/templates/">Templates</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Permalinks' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/permalinks/">Permalinks</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Pagination' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/pagination/">Pagination</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Plugins' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/plugins/">Plugins</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Extras' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/extras/">Extras</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% include docs_ul.html items='templates permalinks pagination plugins extras' %}
|
||||
<h4>Deployment</h4>
|
||||
<ul>
|
||||
<li class="{% if page.title == 'GitHub Pages' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/github-pages/">GitHub Pages</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Deployment methods' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/deployment-methods/">Other methods</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% include docs_ul.html items='github-pages deployment-methods' %}
|
||||
<h4>Miscellaneous</h4>
|
||||
<ul>
|
||||
<li class="{% if page.title == 'Troubleshooting' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/troubleshooting/">Troubleshooting</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Sites using Jekyll' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/sites/">Sites using Jekyll</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Resources' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/resources/">Resources</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'Upgrading' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/upgrading/">Upgrading</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% include docs_ul.html items='troubleshooting sites resources upgrading' %}
|
||||
<h4>Meta</h4>
|
||||
<ul>
|
||||
<li class="{% if page.title == 'Contributing' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/contributing/">Contributing</a>
|
||||
</li>
|
||||
<li class="{% if page.title == 'History' %}current{% endif %}">
|
||||
<a href="{{ site.url }}/docs/history/">History</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% include docs_ul.html items='contributing history' %}
|
||||
</aside>
|
||||
</div>
|
||||
|
|
|
@ -2,41 +2,22 @@
|
|||
<select onchange="if (this.value) window.location.href=this.value">
|
||||
<option value="">Navigate the docs…</option>
|
||||
<optgroup label="Getting started">
|
||||
<option value="{{ site.url }}/docs/home/">Welcome</option>
|
||||
<option value="{{ site.url }}/docs/quickstart/">Quick-start guide</option>
|
||||
<option value="{{ site.url }}/docs/installation/">Installation</option>
|
||||
<option value="{{ site.url }}/docs/usage/">Basic Usage</option>
|
||||
<option value="{{ site.url }}/docs/structure/">Directory structure</option>
|
||||
<option value="{{ site.url }}/docs/configuration/">Configuration</option>
|
||||
{% include docs_option.html items='home quickstart installation usage structure configuration' %}
|
||||
</optgroup>
|
||||
<optgroup label="Your Content">
|
||||
<option value="{{ site.url }}/docs/frontmatter/">Front-matter</option>
|
||||
<option value="{{ site.url }}/docs/posts/">Writing posts</option>
|
||||
<option value="{{ site.url }}/docs/drafts/">Working with drafts</option>
|
||||
<option value="{{ site.url }}/docs/pages/">Creating pages</option>
|
||||
<option value="{{ site.url }}/docs/variables/">Variables</option>
|
||||
<option value="{{ site.url }}/docs/migrations/">Blog migrations</option>
|
||||
{% include docs_option.html items='frontmatter posts drafts pages variables migrations' %}
|
||||
</optgroup>
|
||||
<optgroup label="Customization">
|
||||
<option value="{{ site.url }}/docs/templates/">Templates</option>
|
||||
<option value="{{ site.url }}/docs/permalinks/">Permalinks</option>
|
||||
<option value="{{ site.url }}/docs/pagination/">Pagination</option>
|
||||
<option value="{{ site.url }}/docs/plugins/">Plugins</option>
|
||||
<option value="{{ site.url }}/docs/extras/">Extras</option>
|
||||
{% include docs_option.html items='templates permalinks pagination plugins extras' %}
|
||||
</optgroup>
|
||||
<optgroup label="Deployment">
|
||||
<option value="{{ site.url }}/docs/github-pages/">GitHub Pages</option>
|
||||
<option value="{{ site.url }}/docs/deployment-methods/">Other methods</option>
|
||||
{% include docs_option.html items='github-pages deployment-methods' %}
|
||||
</optgroup>
|
||||
<optgroup label="Miscellaneous">
|
||||
<option value="{{ site.url }}/docs/troubleshooting/">Troubleshooting</option>
|
||||
<option value="{{ site.url }}/docs/sites/">Sites using Jekyll</option>
|
||||
<option value="{{ site.url }}/docs/resources/">Resources</option>
|
||||
<option value="{{ site.url }}/docs/upgrading/">Upgrading</option>
|
||||
{% include docs_option.html items='troubleshooting sites resources upgrading' %}
|
||||
</optgroup>
|
||||
<optgroup label="Meta">
|
||||
<option value="{{ site.url }}/docs/contributing/">Contributing</option>
|
||||
<option value="{{ site.url }}/docs/history/">History</option>
|
||||
{% include docs_option.html items='contributing history' %}
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue