aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-07 18:13:52 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-07 19:00:59 +0200
commitc852860555b89eb288c47547d967fb619a95f6fc (patch)
treee3863e27f89eeed3a5ecce9ea15a89b0a07c0ec8
parentbump jekyll-theme (diff)
downloadblog-c852860555b89eb288c47547d967fb619a95f6fc.tar.gz
blog-c852860555b89eb288c47547d967fb619a95f6fc.zip
show "notes" on sidebar by default
Diffstat (limited to '')
-rw-r--r--_includes/custom-sidebar.html4
-rw-r--r--all/index.html2
-rw-r--r--index.html2
-rw-r--r--notes/index.html3
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 %}
<p>Style guides and best practices, not worthy of a post.</p>