Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.

Fixes #7 Reordering the menu items. #8

Merged
merged 1 commit into from
Jun 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions _includes/pages-list.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<nav class="page-links">
<ul>
{% for page in site.pages %}
{% assign pagelist = site.pages | sort: 'order' %}
{% for page in pagelist %}
{% if page.title and page.type == 'inNavBar' %}
<li>
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
</li>
{% if page.nav_highlight %}
<a class="btn-primary btn--small" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>

{% else %}
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
Expand Down
1 change: 1 addition & 0 deletions about_us.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: About Us
permalink: "/about-us/"
layout: page
type: inNavBar
order: 10
---

## ABOUT US:
Expand Down
1 change: 1 addition & 0 deletions code-of-conduct.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Code of Conduct
permalink: "/code-of-conduct/"
layout: page
type: inNavBar
order: 50
---

{: .t-section-headline }
Expand Down
2 changes: 2 additions & 0 deletions donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: Donate
permalink: "/donate/"
layout: page
type: inNavBar
order: 50
nav_highlight: True
---

Love what we do? Please consider [donating](https://secure.codeforamerica.org/page/contribute/donate-to-a-brigade-today?source_codes=Brigade-page&brigade=Code%20for%20Baltimore) to our community so that we can continue growing.
Expand Down
1 change: 1 addition & 0 deletions events.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Events
permalink: "/events/"
layout: page
type: inNavBar
order: 20
---
# Events

Expand Down
2 changes: 1 addition & 1 deletion projects-balt.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Projects
permalink: "/projects/"
layout: page
type: inNavBar

order: 30
---

{:.t-section-headline}
Expand Down
1 change: 1 addition & 0 deletions team.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Team
permalink: "/team/"
layout: page
type: inNavBar
order: 40
---

# Core Team
Expand Down