diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-07 18:13:52 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-07 19:00:59 +0200 |
commit | c852860555b89eb288c47547d967fb619a95f6fc (patch) | |
tree | e3863e27f89eeed3a5ecce9ea15a89b0a07c0ec8 | |
parent | bump jekyll-theme (diff) | |
download | blog-c852860555b89eb288c47547d967fb619a95f6fc.tar.gz blog-c852860555b89eb288c47547d967fb619a95f6fc.zip |
show "notes" on sidebar by default
-rw-r--r-- | _includes/custom-sidebar.html | 4 | ||||
-rw-r--r-- | all/index.html | 2 | ||||
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | 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 %} @@ -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 %} <p>Style guides and best practices, not worthy of a post.</p> |