Skip to content

Commit

Permalink
sort pages in sidebar into logical order (alphabetically by url)
Browse files Browse the repository at this point in the history
  • Loading branch information
jylitalo committed Jul 20, 2014
1 parent 09dfba1 commit 0799d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
`layout: page` in the front-matter. See readme for usage.
{% endcomment %}

{% assign pages_list = site.pages %}
{% assign pages_list = site.pages | sort:"url" %}
{% for node in pages_list %}
{% if node.title != null %}
{% if node.layout == "page" %}
Expand Down

0 comments on commit 0799d23

Please sign in to comment.