💄 Add custom files support just enjoy by yourself.

This commit is contained in:
凡梦星尘
2022-09-10 21:41:33 +08:00
parent 2276aae127
commit df09cbe4c0
7 changed files with 128 additions and 2 deletions

View File

@@ -23,7 +23,12 @@
</div>
<!--/noindex-->
<div class="site-overview-wrap sidebar-panel">
{{ partial "sidebar/overview" . }}
{{- partialCached "sidebar/overview.html" . -}}
{{- $custom := .Scratch.Get "sidebar" }}
{{- if $custom }}
{{ partialCached $custom . }}
{{- end }}
</div>
</div>
{{- if and .Site.Params.backTop.enable .Site.Params.backTop.sidebar }}