aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 15:01:07 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-09-30 15:01:07 +0300
commitbbff552268514353d8c6d5e99e0c030f6b56078d (patch)
treef9a826145d876e7dc6130e3a3a39f3933472c03a
parentminor markup & wording fixes (diff)
downloadblog-bbff552268514353d8c6d5e99e0c030f6b56078d.tar.gz
blog-bbff552268514353d8c6d5e99e0c030f6b56078d.zip
sort notes by title
-rw-r--r--_config.yml1
-rw-r--r--notes/index.html5
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 %}