2019-11-12 10:03:15 +00:00
|
|
|
{{ if $.Param "enableSidebar" }}
|
2020-01-20 06:14:36 +00:00
|
|
|
<div class="sidebar">
|
2019-11-24 14:31:28 +00:00
|
|
|
{{ partial "search/site-search" . }}
|
2020-01-19 05:11:58 +00:00
|
|
|
{{ partial "sidebar/site-bio" . }}
|
2019-12-05 10:04:42 +00:00
|
|
|
{{ partial "sidebar/custom-home" . }}
|
2019-11-15 08:37:32 +00:00
|
|
|
|
2020-01-19 05:11:58 +00:00
|
|
|
{{ if and .Site.Params.itemsPerCategory .Site.Params.enableHomeSidebarTitles }}
|
|
|
|
{{ $filteredSections := .Site.Sections }}
|
|
|
|
{{ range .Site.Params.notAllowedTypesInHomeSidebar }}
|
|
|
|
{{ $filteredSections = (where $filteredSections "Type" "!=" (lower .)) }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ range $filteredSections }}
|
|
|
|
<section class="sidebar-recent">
|
|
|
|
<a href="{{ .RelPermalink }}" class="sidebar-recent__title p2">{{ .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>
|
|
|
|
<hr class="hr-fade sidebar-hr" />
|
|
|
|
{{ end }}
|
2019-11-04 13:09:44 +00:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
2019-11-17 11:01:09 +00:00
|
|
|
<div class="taxo-root">
|
2019-11-04 13:09:44 +00:00
|
|
|
{{ partial "taxonomy/taxonomy-tags" . }}
|
|
|
|
{{ partial "taxonomy/taxonomy-categories" . }}
|
2019-11-12 10:03:15 +00:00
|
|
|
{{ partial "taxonomy/taxonomy-series" . }}
|
2019-11-17 11:01:09 +00:00
|
|
|
</div>
|
2019-11-18 12:14:32 +00:00
|
|
|
<hr class="hr-fade sidebar-hr" />
|
2019-11-12 10:03:15 +00:00
|
|
|
|
|
|
|
{{ end }}
|