Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0799d23

Browse files
committed
sort pages in sidebar into logical order (alphabetically by url)
1 parent 09dfba1 commit 0799d23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
`layout: page` in the front-matter. See readme for usage.
1717
{% endcomment %}
1818

19-
{% assign pages_list = site.pages %}
19+
{% assign pages_list = site.pages | sort:"url" %}
2020
{% for node in pages_list %}
2121
{% if node.title != null %}
2222
{% if node.layout == "page" %}

0 commit comments

Comments
 (0)