From c852860555b89eb288c47547d967fb619a95f6fc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 7 Apr 2022 18:13:52 +0200 Subject: show "notes" on sidebar by default --- _includes/custom-sidebar.html | 4 ++-- all/index.html | 2 -- index.html | 2 -- notes/index.html | 3 +++ 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/_includes/custom-sidebar.html b/_includes/custom-sidebar.html index f03f2cb..0aad3ac 100644 --- a/_includes/custom-sidebar.html +++ b/_includes/custom-sidebar.html @@ -1,8 +1,8 @@ -{% if page.sidebar.notes.show %} +{% unless page.sidebar.notes.hide %} {% capture notes %} {% include notes.html sidebar=true %} {% endcapture %} {% include jekyll-theme/sidebar/entry.html content=notes %} -{% endif %} +{% endunless %} diff --git a/all/index.html b/all/index.html index 3a0a88d..dbacc4a 100644 --- a/all/index.html +++ b/all/index.html @@ -7,7 +7,5 @@ navbar: sidebar: latest_posts: hide: true - notes: - show: true --- {% include jekyll-theme/categories/all.html %} diff --git a/index.html b/index.html index 8fc200a..5271263 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,5 @@ navbar: sidebar: latest_posts: hide: true - notes: - show: true --- {% include jekyll-theme/posts/feed.html %} diff --git a/notes/index.html b/notes/index.html index 1351be1..8e03612 100644 --- a/notes/index.html +++ b/notes/index.html @@ -3,6 +3,9 @@ title: Notes navbar: link: Notes priority: 3 +sidebar: + notes: + hide: true --- {% if site.notes.size > 0 %}

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

-- cgit v1.2.3