diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-09 16:30:47 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-09 16:30:47 +0300 |
commit | 2263863169492d57ad7b83870a7c96841f5115db (patch) | |
tree | 5a5a5111a19c81ce7e4caf8eed5a91e4925e8c3f | |
parent | bump jekyll-theme (diff) | |
download | blog-2263863169492d57ad7b83870a7c96841f5115db.tar.gz blog-2263863169492d57ad7b83870a7c96841f5115db.zip |
comment on a workaround
-rw-r--r-- | _config.yml | 3 | ||||
-rw-r--r-- | notes/index.html | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/_config.yml b/_config.yml index 14435ab..33a7233 100644 --- a/_config.yml +++ b/_config.yml @@ -10,7 +10,8 @@ exclude: collections: notes: output: true - sort_by: title # Doesn't work? + # Jekyll 4.0 or later: + #sort_by: title defaults: - scope: diff --git a/notes/index.html b/notes/index.html index 99b1f6e..034941d 100644 --- a/notes/index.html +++ b/notes/index.html @@ -8,6 +8,9 @@ navbar_priority: 3 {% if site.notes.size != 0 %} <p>This is a complete list of notes I maintain for my personal usage.</p> <ul> + {% comment %} + Sorting can be done in _config.yml with Jekyll 4.0 or later. + {% endcomment %} {% assign note_list = site.notes | sort: 'title' %} {% for note in note_list %} <li><a href="{{ note.url | relative_url }}">{{ note.title }}</a></li> |