From 5e25c497c37c39d399d0851f316aa5783d536347 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 24 Mar 2022 11:46:43 +0300 Subject: sidebar: allow adding custom content --- README.md | 2 ++ _includes/custom-sidebar.html | 0 _includes/jekyll-theme/sidebar.html | 1 + 3 files changed, 3 insertions(+) create mode 100644 _includes/custom-sidebar.html 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 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 @@
{% include jekyll-theme/sidebar/about.html %} {% include jekyll-theme/sidebar/latest-posts.html %} + {% include custom-sidebar.html %}
{% endunless %} -- cgit v1.2.3