Skip to content

Commit 2f6019c

Browse files
author
Tim Watson
committed
sort the tutorial pages properly; add 'serve' rule to makefile
1 parent bce535d commit 2f6019c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ TEMPLATE_DIR=${ROOT_DIRECTORY}/static/templates
66
TEMPLATE_FILES=$(wildcard ${TEMPLATE_DIR}/*)
77
TEMPLATES=$(basename $(notdir ${TEMPLATE_FILES}))
88

9+
.PHONY: all
910
all:
1011
$(info select a target)
1112
$(info ${TEMPLATES})
@@ -17,3 +18,7 @@ else
1718
$(TEMPLATES):
1819
$(error you need to specify NAME=<name> to run this target)
1920
endif
21+
22+
.PHONY: serve
23+
serve:
24+
jekyll --pygments --no-lsi --safe --server

_includes/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<li class="dropdown">
1515
<a class="dropdown-toggle" data-toggle="dropdown">Tutorials <b class="caret"></b></a>
1616
<ul class="dropdown-menu">
17-
{% for page in site.pages %}
17+
{% for page in site.pages | sort %}
1818
{% if page.categories contains 'tutorial' %}
1919
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
2020
{% endif %}

0 commit comments

Comments
 (0)