From cabfb8ec4e4f75575b048e3dcd3ab4622b593c9d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 25 Oct 2022 12:05:29 +0200 Subject: redesign feed & categories --- _config.yml | 2 +- _includes/notes.html | 10 ++-------- c++/index.html | 1 + haskell/index.html | 1 + math/index.html | 1 + notes/index.html | 20 ++++++++++++++++++-- 6 files changed, 24 insertions(+), 11 deletions(-) diff --git a/_config.yml b/_config.yml index a7407fc..d074df8 100644 --- a/_config.yml +++ b/_config.yml @@ -59,7 +59,7 @@ repository: egor-tensin/blog # jekyll-paginate paginate: 10 # jekyll-remote-theme -remote_theme: egor-tensin/jekyll-theme@2dc87131123afaa1716c87dd02164b33059ad2b8 +remote_theme: egor-tensin/jekyll-theme@18664118c08300b0e4a82ac225cc62b8b1513a7f # Theme settings settings: diff --git a/_includes/notes.html b/_includes/notes.html index 4b739af..7783490 100644 --- a/_includes/notes.html +++ b/_includes/notes.html @@ -3,21 +3,15 @@ {% 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 %} - <{{ h }} class="list-group-item-heading post-header"> +
{{ note.title }} - +
{% endfor %}
diff --git a/c++/index.html b/c++/index.html index c6dc43a..e2fd103 100644 --- a/c++/index.html +++ b/c++/index.html @@ -1,4 +1,5 @@ --- title: C++ +layout: default --- {% include jekyll-theme/categories/category.html category=page.title archive_link='/all/' %} diff --git a/haskell/index.html b/haskell/index.html index d25c438..1fe6653 100644 --- a/haskell/index.html +++ b/haskell/index.html @@ -1,4 +1,5 @@ --- title: Haskell +layout: default --- {% include jekyll-theme/categories/category.html category=page.title archive_link='/all/' %} diff --git a/math/index.html b/math/index.html index 618be73..d0ba4fd 100644 --- a/math/index.html +++ b/math/index.html @@ -1,4 +1,5 @@ --- title: Math +layout: default --- {% include jekyll-theme/categories/category.html category=page.title archive_link='/all' %} diff --git a/notes/index.html b/notes/index.html index 8e03612..a5452c0 100644 --- a/notes/index.html +++ b/notes/index.html @@ -3,13 +3,29 @@ title: Notes navbar: link: Notes priority: 3 +layout: default sidebar: notes: hide: true --- +

{% include jekyll-theme/categories/label.html category='Notes' feed=true %}

{% if site.notes.size > 0 %} -

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

- {% include notes.html %} + {% 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 %} + +
+
{{ note.title }}
+ +
+
+ {% endfor %} {% else %}

Sorry, no notes have been added yet.

{% endif %} -- cgit v1.2.3