Skip to content

Commit f9514a0

Browse files
committed
Order for pages
1 parent 0f3c57c commit f9514a0

File tree

7 files changed

+9
-2
lines changed

7 files changed

+9
-2
lines changed

_includes/header.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
<div id="navbar" class="navbar-collapse collapse">
1414
<ul class="nav navbar-nav">
1515
{% comment %} <li {% if page.url == "/" %}class="active"{% endif %}><a href="{{ site.url }}">Home</a></li> {% endcomment %}
16-
{% for my_page in site.pages %}
16+
{% assign sorted_pages = site.pages | sort:"order" %}
17+
{% for my_page in sorted_pages %}
1718
{% if my_page.title %}
1819
<li class="inline-block{% if page.url == my_page.url %} active{% endif %}">
1920
<a href="{% if my_page.static_url %} {{my_page.static_url}} {% else %} {{ my_page.url | prepend: site.baseurl }} {% endif %}">{{ my_page.title }}</a>

index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: home
33
title: Home
4+
order: 0
45
main: true
56
excerpt: scafi (Scala with computational Fields) is a field calculus-based DSL and toolkit for Aggregate Programming, providing a support for globally describing and executing self-organising, collective adaptive systems made of a networked set of logical situated devices.
67
---

pages/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: page
33
title: API
44
static_url: https://scafi.github.io/doc/latest/api/
55
excerpt: Redirect to the ScaFi's API documentation.
6+
order: 2
67
main: true
78
---
89

pages/docs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Docs
44
permalink: /docs/
55
excerpt: Documentation for ScaFi, a Scala-based aggregate programming toolkit. It describes the ScaFi domain-specific language (DSL), which implements a variant of the field calculus, as well as its API, runtime and support for construction of aggregate systems.
66
main: true
7+
order: 2
78
custom_js:
89
- https://cdn.rawgit.com/pcooksey/bibtex-js/5ccf967/src/bibtex_js.js
910
---

pages/papers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Papers
44
permalink: /papers/
55
excerpt: Bibliography related to the ScaFi aggregate programming toolkit. This pages includes relevant peer-reviewed articles that describe or leverage ScaFi.
66
main: true
7+
order: 3
78
custom_js:
89
- https://cdn.rawgit.com/pcooksey/bibtex-js/5ccf967/src/bibtex_js.js
910
---

pages/repo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ layout: page
33
title: Repository
44
static_url: https://github.com/scafi/scafi
55
excerpt: Redirect to the ScaFi's GitHub repository.
6+
order: 1
67
main: true
78
---
89

pages/scafi-web.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
permalink: /web/
55
excerpt: Web simulator
66
main: true
7+
order: 9
78
---
8-
<script type="text/javascript" src="../js/injector.js"></script>
9+
<script type="text/javascript" src="../js/injector.js"></script>

0 commit comments

Comments
 (0)