removing gh-pages branch and putting everything in master
This commit is contained in:
87
_includes/sidebar.html
Normal file
87
_includes/sidebar.html
Normal file
@ -0,0 +1,87 @@
|
||||
<!-- Content Row -->
|
||||
<div class="row">
|
||||
<!-- Sidebar Column -->
|
||||
<div class="col-md-3">
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
// Initialize navgoco with default options
|
||||
$("#mysidebar").navgoco({
|
||||
caretHtml: '',
|
||||
accordion: {{site.sidebar_accordion}},
|
||||
openClass: 'active', // open
|
||||
save: false, // leave false or nav higlighting doesn't work right
|
||||
cookie: {
|
||||
name: 'navgoco',
|
||||
expires: false,
|
||||
path: '/'
|
||||
},
|
||||
slide: {
|
||||
duration: 400,
|
||||
easing: 'swing'
|
||||
}
|
||||
});
|
||||
|
||||
$("#collapseAll").click(function(e) {
|
||||
e.preventDefault();
|
||||
$("#mysidebar").navgoco('toggle', false);
|
||||
});
|
||||
|
||||
$("#expandAll").click(function(e) {
|
||||
e.preventDefault();
|
||||
$("#mysidebar").navgoco('toggle', true);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
{% include conditions.html %}
|
||||
|
||||
<ul id="mysidebar" class="nav">
|
||||
|
||||
<div class="siteTagline">{{site.tagline}}</div>
|
||||
|
||||
{% for entry in sidebar %}
|
||||
{% for subcategory in entry.subcategories %}
|
||||
{% if subcategory.audience contains buildAudience %}
|
||||
<li><a href="#">{{ subcategory.title }}</a>
|
||||
<ul>
|
||||
{% for item in subcategory.items %}
|
||||
{% if item.audience contains buildAudience and item.web != false %}
|
||||
<li><a href="{{item.url | prepend: site.baseurl}}index.html">{{item.title}}</a>
|
||||
{% for thirdlevel in item.thirdlevel %}
|
||||
{% if thirdlevel.audience contains buildAudience and web != false %}
|
||||
<li class="thirdlevel"><a href="#">{{ thirdlevel.title }}</a>
|
||||
<ul>
|
||||
{% for deeplevel in thirdlevel.thirdlevelitems%}
|
||||
{% if deeplevel.audience contains buildAudience and item.web != false %}
|
||||
<li><a href="{{deeplevel.url | prepend: site.baseurl}}index.html">{{deeplevel.title}}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
|
||||
{% if site.sidebar_accordion == false %}
|
||||
<p class="external">
|
||||
<a href="#" id="collapseAll">Collapse All</a> | <a href="#" id="expandAll">Expand All</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user