Skip to content
Snippets Groups Projects
Commit 3470266e authored by Thomas Wood's avatar Thomas Wood
Browse files

Permit manual menu ordering

parent 0a7ba773
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ defaults: ...@@ -21,6 +21,7 @@ defaults:
values: values:
layout: "page" layout: "page"
menu: true menu: true
menu_order: 9
scholar: scholar:
source: . source: .
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="site-masthead"> <div class="site-masthead">
<div class="container"> <div class="container">
<nav class="nav"> <nav class="nav">
{% assign menu_items = site.pages | where:"menu",true %} {% assign menu_items = site.pages | where:"menu",true | sort:"menu_order" %}
{% if menu_items.size > 1 %} {% if menu_items.size > 1 %}
{% for item in menu_items %} {% for item in menu_items %}
{% if item.title %} {% if item.title %}
......
--- ---
title: Home title: Home
menu_order: 1
--- ---
The world-wide web is a nearly-ubiquitous and continuously-growing application platform. The world-wide web is a nearly-ubiquitous and continuously-growing application platform.
As users increasingly come to depend on web applications, it is more important than ever to be able to make guarantees about these programs. As users increasingly come to depend on web applications, it is more important than ever to be able to make guarantees about these programs.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment