From 5c569ca60837f88d96df6429cfe687c55792b138 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 24 Mar 2022 13:07:09 +0300 Subject: show notes on the sidebar on some pages --- notes/index.html | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'notes/index.html') diff --git a/notes/index.html b/notes/index.html index da03827..1351be1 100644 --- a/notes/index.html +++ b/notes/index.html @@ -5,18 +5,8 @@ navbar: priority: 3 --- {% if site.notes.size > 0 %} - {% comment %} - Sorting can be done in _config.yml with Jekyll 4.0 or later. - {% endcomment %} - {% assign note_list = site.notes | sort_natural: 'title' %}

Style guides and best practices, not worthy of a post.

-
- {% for note in note_list %} - -

{{ note.title }} {{ note.subtitle }}

-
- {% endfor %} -
+ {% include notes.html %} {% else %}

Sorry, no notes have been added yet.

{% endif %} -- cgit v1.2.3