aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-24 11:46:43 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-24 11:46:43 +0300
commit5e25c497c37c39d399d0851f316aa5783d536347 (patch)
tree85031ea3a4438daa20c285b7d509b9ba96e0b5b2
parentREADME: update (diff)
downloadjekyll-theme-5e25c497c37c39d399d0851f316aa5783d536347.tar.gz
jekyll-theme-5e25c497c37c39d399d0851f316aa5783d536347.zip
sidebar: allow adding custom content
-rw-r--r--README.md2
-rw-r--r--_includes/custom-sidebar.html0
-rw-r--r--_includes/jekyll-theme/sidebar.html1
3 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3fff7a9..1d40014 100644
--- a/README.md
+++ b/README.md
@@ -118,6 +118,8 @@ The sidebar includes two entries by default: "About" and "Latest posts".
Hide them individually by setting `sidebar.{about,latest_posts}.hide` to `true`
(either under `site.settings` or `page`).
+Add content to the sidebar by putting it in your _includes/custom-sidebar.html.
+
### Feed
See [feed/index.html] for an example of how to easily create a paginated post
diff --git a/_includes/custom-sidebar.html b/_includes/custom-sidebar.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/_includes/custom-sidebar.html
diff --git a/_includes/jekyll-theme/sidebar.html b/_includes/jekyll-theme/sidebar.html
index 0879248..429bb32 100644
--- a/_includes/jekyll-theme/sidebar.html
+++ b/_includes/jekyll-theme/sidebar.html
@@ -2,5 +2,6 @@
<div class="row">
{% include jekyll-theme/sidebar/about.html %}
{% include jekyll-theme/sidebar/latest-posts.html %}
+ {% include custom-sidebar.html %}
</div>
{% endunless %}