Commit 9d2d8ba2 authored by Valerie R Young's avatar Valerie R Young

successfully force ordering

parent 8ccd3ba1
{% assign sorted_pages = site.pages | sort:"order" %}
<header class="site-header">
<div class="container">
<div class="row">
......@@ -16,7 +17,7 @@
</svg>
</a>
<div class="trigger">
{% for page in site.pages %}
{% for page in sorted_pages | sort:"order" %}
{% if page.title %}<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>{% endif %}
{% endfor %}
</div>
......
......@@ -2,6 +2,7 @@
layout: page
title: Documentation
permalink: /docs/
order: 1
---
<div class="row">
......
......@@ -2,6 +2,7 @@
layout: page
title: Events
permalink: /events/
order: 4
---
<div class="row">
......
---
layout: home
---
{% assign sorted_pages = site.pages | sort:"order" %}
<nav>
<div class="hide-on-mobiles">
{% for page in site.pages %}
{% for page in sorted_pages %}
{% if page.title %}<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>{% endif %}
{% endfor %}
</div>
<div class="show-on-mobiles">
<select onchange="if (this.value) window.location.href=this.value">
<option value="">reproducible-builds.org</option>
{% for page in site.pages %}
{% for page in sorted_pages %}
{% if page.title %}<option value="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</option>{% endif %}
{% endfor %}
</select>
......
......@@ -2,6 +2,7 @@
layout: page
title: News
permalink: /news/
order: 6
---
{% for post in site.posts %}
......
......@@ -2,6 +2,7 @@
layout: page
title: Talks & Resources
permalink: /resources/
order: 2
---
<div class="row">
......
......@@ -2,6 +2,7 @@
layout: page
title: Tools
permalink: /tools/
order: 3
---
<div class="row">
<div class="four columns">&nbsp;</div>
......
......@@ -2,6 +2,7 @@
layout: page
title: Who is involved?
permalink: /who/
order: 5
---
<div class="row">
......
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