diff options
-rw-r--r-- | _config.yml | 1 | ||||
-rw-r--r-- | notes/index.html | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/_config.yml b/_config.yml index 82a60fb..5f3b770 100644 --- a/_config.yml +++ b/_config.yml @@ -16,6 +16,7 @@ paginate: 10 collections: notes: output: true + sort_by: title # Doesn't work? defaults: - scope: diff --git a/notes/index.html b/notes/index.html index 2cfa42c..0ceb78c 100644 --- a/notes/index.html +++ b/notes/index.html @@ -11,10 +11,11 @@ navbar_priority: 3 {% if site.notes.size != 0 %} <p>This is a complete list of notes I maintain for my personal usage.</p> <ul> - {% for note in site.notes %} + {% assign note_list = site.notes | sort: 'title' %} + {% for note in note_list %} <li><a href="{{ site.baseurl }}{{ note.url }}">{{ note.title }}</a></li> {% endfor %} </ul> {% else %} - <p>No notes have been added yet.</p> + <p>Sorry, no notes have been added yet.</p> {% endif %} |