Skip to content

Commit

Permalink
update nav to loop through pages with weight 1 > 10
Browse files Browse the repository at this point in the history
  • Loading branch information
mapsam committed Mar 25, 2015
1 parent 5a1c5f3 commit 470d5d4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
14 changes: 6 additions & 8 deletions _includes/menu.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<div class='tabs col7'>
<a href='{{site.baseurl}}/' class='col2'>Home</a>
<a href='{{site.baseurl}}/chapters/' class='col2'>Chapters</a>
<a href='{{site.baseurl}}/lessons-resources/' class='col2'>Resources</a>
<a href='{{site.baseurl}}/about/' class='col2'>About</a>
<a href='{{site.baseurl}}/contact/' class='col2'>Contact</a>
<a href='{{site.baseurl}}/maptime-summit-2015/' class='col2'><strong>MAPTIME<br/>SUMMIT!</strong></a>
</div>
<nav id="navbar" class=''>
<li><a href='{{site.baseurl}}/' class='col2'>Home</a></li>
{% for weight in (1..10) %}{% for p in site.pages %}{% if p.weight == weight %}
<li{% if p.url == page.url %} class="active"{% endif %}><a href="{{ p.url }}">{{ p.title }}</a></li>
{% endif %}{% endfor %}{% endfor %}
</nav>
1 change: 0 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<div class='main col12 contain dark'>
{% endif %}
<a href='{{site.baseurl}}/' class='sprite maptime pin-left'>Maptime</a>
{% include menu.html %}
{% include header.html %}

</div>
Expand Down
1 change: 1 addition & 0 deletions about/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
weight: 3
title: About
description: "This open learning environment for all levels and degrees of knowledge offers intentional support for the beginner. Maptime is simultaneously flexible and structured, creating space for workshops, ongoing projects with a shared goal, and independent/collaborative work time. Beginners most welcome!"
published: true
Expand Down
1 change: 1 addition & 0 deletions chapters/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
weight: 1
title: Chapters
description: "Once Maptime got started in San Francisco, it wasn't long before cites all over the world started to get involved. Here are all of the Maptime chapters that exist so far, along with the team that puts them together."

Expand Down
1 change: 1 addition & 0 deletions contact/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
weight: 4
title: Contact
description: "There are many folks involved in Maptime activities around the world and a dedicated crew of inidividuals who are making sure everyone has the resources to keep Maptime going. Feel free to reach out and contact us!"
---
Expand Down
1 change: 1 addition & 0 deletions lessons-resources/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
weight: 3
title: Resources
description: "Getting started? Dive in here. Looking for tutorials? We got 'em. Look here for a list of guides to getting started in all things geo."
---
Expand Down
1 change: 1 addition & 0 deletions maptime-summit-2015/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
weight: 5
title: Maptime Summit!
description: "June 8, 2015 // UN Headquarters // New York, NY"
---
Expand Down

0 comments on commit 470d5d4

Please sign in to comment.