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 --- _includes/notes.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 _includes/notes.html (limited to '_includes/notes.html') diff --git a/_includes/notes.html b/_includes/notes.html new file mode 100644 index 0000000..25c8049 --- /dev/null +++ b/_includes/notes.html @@ -0,0 +1,19 @@ +{% comment %} + Sorting can be done in _config.yml with Jekyll 4.0 or later. +{% endcomment %} +{% assign note_list = site.notes | sort_natural: 'title' %} +
+ {% for note in note_list %} + + {% if include.sidebar %} + {{ note.subtitle }} +  {{ note.title }} + {% else %} +
+ {{ note.title }} + {{ note.subtitle }} +
+ {% endif %} +
+ {% endfor %} +
-- cgit v1.2.3