From 277b1bdca7af0b4a986e05f3bb94fbcebb878b28 Mon Sep 17 00:00:00 2001 From: Christian Basler Date: Sun, 26 Jun 2016 09:28:04 +0200 Subject: [PATCH] Ordered pages --- _includes/header.html | 3 ++- about.md | 1 + dependencies.markdown | 1 + index.markdown | 1 + quickstart.markdown | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/_includes/header.html b/_includes/header.html index b3f86db..a2fea35 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -14,7 +14,8 @@
- {% for my_page in site.pages %} + {% assign sorted_pages = site.pages | sort: 'order' %} + {% for my_page in sorted_pages %} {% if my_page.title %} {{ my_page.title }} {% endif %} diff --git a/about.md b/about.md index 89713dd..9b7909f 100644 --- a/about.md +++ b/about.md @@ -2,6 +2,7 @@ layout: page title: About permalink: /about/ +order: 100 --- Jabit is a Bitmessage library for Java. It aims to be easy to use, so you can create great Bitmessage apps. diff --git a/dependencies.markdown b/dependencies.markdown index 5c40e3a..d698637 100644 --- a/dependencies.markdown +++ b/dependencies.markdown @@ -2,6 +2,7 @@ layout: page title: "Dependencies" permalink: "/dependencies" +order: 10 categories: dependencies --- diff --git a/index.markdown b/index.markdown index 9b5f201..55b3445 100644 --- a/index.markdown +++ b/index.markdown @@ -1,6 +1,7 @@ --- layout: page title: "Jabit" +order: 0 --- Jabit is a Java implementation for the Bitmessage protocol. If you visit this page, I assume you are a Java developer and already know about [Bitmessage][bitmessage]. diff --git a/quickstart.markdown b/quickstart.markdown index ec2c6cd..99e813e 100644 --- a/quickstart.markdown +++ b/quickstart.markdown @@ -2,6 +2,7 @@ layout: page title: "Quick Start" permalink: "/quickstart" +order: 1 categories: quick start ---