Commit f21d125f authored by Mark Stenglein's avatar Mark Stenglein

Implements dynamic menu generation from _data/navigation.yml

parent 79172d39
......@@ -12,24 +12,20 @@
<div class="navbar-right collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="{{ url_for('projects')}}">Projects</a></li>
<li><a href=" //hackmason.org ">Events</a></li>
<li><a href="{{ url_for('calendar')}}">Calendar</a>
<!-- <li><a href="http://blog.srct.gmu.edu">Blog</a> -->
<li><a href="{{ url_for('people')}}">People</a></li>
<li class="dropdown">
<a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">Documents <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('constitution')}}">Constitution</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('usagePolicy')}}">Usage Policy</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('termsOfService')}}">Terms of Service</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('privacyPolicy')}}">Privacy Policy</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('intellectualProperty')}}">Intellectual Property</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('softwareFreedom')}}">Software Freedom</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('logos')}}">Logos</a></li>
</ul>
</li>
<li><a href="/contact">Contact</a>
{% for link in site.data.navigation.main %}
{% if link.children == null %}
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
{% else %}
<li class="dropdown">
<a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">{{ link.title }} <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
{% for childLink in link.children %}
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ childLink.url }}">{{ childLink.title }}</a></li>
{% endfor %}
</ul>
</li>
{% endif %}
{% endfor %}
</ul>
</div><!--/.nav-collapse -->
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment