From 510f4407aba4e6db1cf54d731dd97e593e84626c Mon Sep 17 00:00:00 2001 From: zzossig Date: Sat, 18 Jan 2020 22:38:55 +0900 Subject: [PATCH] enableListSidebarTitles added --- README.ko.md | 1 + README.md | 2 ++ exampleSite/config/_default/params.toml | 1 + layouts/partials/sidebar/sidebar-list.html | 27 +++++++++++----------- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/README.ko.md b/README.ko.md index 262e7c4..3d57832 100644 --- a/README.ko.md +++ b/README.ko.md @@ -263,6 +263,7 @@ enableSidebar = true # Set to false to create the full width of the content. enableSidebarTags = true # if you want to use tags. enableSidebarSeries = true enableSidebarCategories = true +enableListSidebarTitles = true enableToc = true # single page table of contents, you can replace this param to toc(toc = true) hideToc = false # Hide or Show toc enableTocSwitch = true # single page table of contents visibility switch diff --git a/README.md b/README.md index 33ffcf4..9eb888a 100644 --- a/README.md +++ b/README.md @@ -254,9 +254,11 @@ link = "https://github.com/zzossig/hugo-theme-zzo" # sidebar enableBio = true # home page sidebar enableSidebar = true # Set to false to create the full width of the content. +enableSidebarTitles = true enableSidebarTags = true # if you want to use tags. enableSidebarSeries = true enableSidebarCategories = true +enableListSidebarTitles = true enableToc = true # single page table of contents, you can replace this param to toc(toc = true) hideToc = false # Hide or Show toc enableTocSwitch = true # single page table of contents visibility switch diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 1669464..0857b43 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -40,6 +40,7 @@ enableSidebar = true enableSidebarTags = true enableSidebarSeries = true enableSidebarCategories = true +enableListSidebarTitles = true enableToc = true hideToc = false enableTocSwitch = true diff --git a/layouts/partials/sidebar/sidebar-list.html b/layouts/partials/sidebar/sidebar-list.html index c0ec788..4375e1c 100644 --- a/layouts/partials/sidebar/sidebar-list.html +++ b/layouts/partials/sidebar/sidebar-list.html @@ -3,22 +3,21 @@ - -
{{ partial "taxonomy/taxonomy-tags" . }} {{ partial "taxonomy/taxonomy-categories" . }}