From 31ed013133ee5c48abec0e58f2f9dbefbf32f865 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 5 Apr 2022 17:18:38 +0200 Subject: sidebar: redesign "Notes" section --- _includes/notes.html | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to '_includes/notes.html') diff --git a/_includes/notes.html b/_includes/notes.html index ad7e58d..1657f7a 100644 --- a/_includes/notes.html +++ b/_includes/notes.html @@ -3,17 +3,21 @@ {% endcomment %} {% assign note_list = site.notes | sort_natural: 'title' %}
+ {% assign h = 'h4' %} + {% if include.sidebar %} + {% assign h = 'h5' %} + {% endif %} + {% if include.sidebar %} +
+

notes

+
+ {% endif %} {% for note in note_list %} - {% if include.sidebar %} - {{ note.subtitle }} -  {{ note.title }} - {% else %} -

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

- {% endif %} + <{{ h }} class="list-group-item-heading" style="display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-grap: .5em;"> + {{ note.title }} + {{ note.subtitle }} +
{% endfor %}
-- cgit v1.2.3