diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-24 11:46:43 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-24 11:46:43 +0300 |
commit | 5e25c497c37c39d399d0851f316aa5783d536347 (patch) | |
tree | 85031ea3a4438daa20c285b7d509b9ba96e0b5b2 | |
parent | README: update (diff) | |
download | jekyll-theme-5e25c497c37c39d399d0851f316aa5783d536347.tar.gz jekyll-theme-5e25c497c37c39d399d0851f316aa5783d536347.zip |
sidebar: allow adding custom content
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | _includes/custom-sidebar.html | 0 | ||||
-rw-r--r-- | _includes/jekyll-theme/sidebar.html | 1 |
3 files changed, 3 insertions, 0 deletions
@@ -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 %} |