enableListSidebarTitles added
This commit is contained in:
parent
f03148857f
commit
510f4407ab
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -40,6 +40,7 @@ enableSidebar = true
|
|||
enableSidebarTags = true
|
||||
enableSidebarSeries = true
|
||||
enableSidebarCategories = true
|
||||
enableListSidebarTitles = true
|
||||
enableToc = true
|
||||
hideToc = false
|
||||
enableTocSwitch = true
|
||||
|
|
|
@ -3,22 +3,21 @@
|
|||
<div class="sidebar">
|
||||
{{ partial "search/site-search" . }}
|
||||
{{ partial "sidebar/custom-list" . }}
|
||||
{{ if .Site.Params.itemsPerCategory }}
|
||||
{{ range first .Site.Params.itemsPerCategory .Pages }}
|
||||
<section class="sidebar-recent">
|
||||
<a href="{{ .RelPermalink }}" class="sidebar-recent__title p1">{{ .Title }}</a>
|
||||
<ul class="sidebar-recent__ul">
|
||||
{{ range first .Site.Params.itemsPerCategory .Pages }}
|
||||
<li><a href="{{ .RelPermalink }}" class="sidebar-recent__a p2">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ if and .Site.Params.itemsPerCategory .Site.Params.enableListSidebarTitles }}
|
||||
{{ range first .Site.Params.itemsPerCategory .Pages }}
|
||||
<section class="sidebar-recent">
|
||||
<a href="{{ .RelPermalink }}" class="sidebar-recent__title p1">{{ .Title }}</a>
|
||||
<ul class="sidebar-recent__ul">
|
||||
{{ range first .Site.Params.itemsPerCategory .Pages }}
|
||||
<li><a href="{{ .RelPermalink }}" class="sidebar-recent__a p2">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
<hr class="hr-fade sidebar-hr" />
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<hr class="hr-fade sidebar-hr" />
|
||||
<div class="taxo-root">
|
||||
{{ partial "taxonomy/taxonomy-tags" . }}
|
||||
{{ partial "taxonomy/taxonomy-categories" . }}
|
||||
|
|
Loading…
Reference in New Issue