Skip to content

Commit

Permalink
Merge pull request barryclark#55 from jylitalo/sort-pages-in-sidebar
Browse files Browse the repository at this point in the history
sort pages in sidebar into logical order (alphabetically by url)
  • Loading branch information
mdo committed Sep 26, 2014
2 parents bdf9bd7 + 0799d23 commit f37d053
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 f37d053

Please sign in to comment.