Commit f21d125f authored by Mark Stenglein's avatar Mark Stenglein
Browse files

Implements dynamic menu generation from _data/navigation.yml

parent 79172d39
...@@ -12,24 +12,20 @@ ...@@ -12,24 +12,20 @@
<div class="navbar-right collapse navbar-collapse navbar-ex1-collapse"> <div class="navbar-right collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="{{ url_for('projects')}}">Projects</a></li> {% for link in site.data.navigation.main %}
<li><a href=" //hackmason.org ">Events</a></li> {% if link.children == null %}
<li><a href="{{ url_for('calendar')}}">Calendar</a> <li><a href="{{ link.url }}">{{ link.title }}</a></li>
<!-- <li><a href="http://blog.srct.gmu.edu">Blog</a> --> {% else %}
<li><a href="{{ url_for('people')}}">People</a></li> <li class="dropdown">
<li class="dropdown"> <a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">{{ link.title }} <b class="caret"></b></a>
<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">
<ul class="dropdown-menu" role="menu" aria-labelledby="drop1"> {% for childLink in link.children %}
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('constitution')}}">Constitution</a></li> <li role="presentation"><a role="menuitem" tabindex="-1" href="{{ childLink.url }}">{{ childLink.title }}</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('usagePolicy')}}">Usage Policy</a></li> {% endfor %}
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('termsOfService')}}">Terms of Service</a></li> </ul>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('privacyPolicy')}}">Privacy Policy</a></li> </li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('intellectualProperty')}}">Intellectual Property</a></li> {% endif %}
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('softwareFreedom')}}">Software Freedom</a></li> {% endfor %}
<li role="presentation"><a role="menuitem" tabindex="-1" href="{{ url_for('logos')}}">Logos</a></li>
</ul>
</li>
<li><a href="/contact">Contact</a>
</ul> </ul>
</div><!--/.nav-collapse --> </div><!--/.nav-collapse -->
</div> </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