diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 15:01:07 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 15:01:07 +0300 |
commit | bbff552268514353d8c6d5e99e0c030f6b56078d (patch) | |
tree | f9a826145d876e7dc6130e3a3a39f3933472c03a /notes | |
parent | minor markup & wording fixes (diff) | |
download | blog-bbff552268514353d8c6d5e99e0c030f6b56078d.tar.gz blog-bbff552268514353d8c6d5e99e0c030f6b56078d.zip |
sort notes by title
Diffstat (limited to '')
-rw-r--r-- | notes/index.html | 5 |
1 files changed, 3 insertions, 2 deletions
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 %} |