{{- if .IsPage -}}
    {{- $pageShowToc := .Params.showToc -}}
    {{- $siteShowToc := .Site.Params.showToc -}}
    {{- if or ($pageShowToc) (and (ne $pageShowToc false) (ne $siteShowToc false)) -}}
    <div class="sidebar-item sidebar-toc">
        <h3>{{ i18n "sidebarToc" }}</h3>
        {{- .TableOfContents -}}
    </div>
    {{- end -}}
    {{ else }}
    {{ with .Site.Params.bgmImageChart }}
    <!-- bgm.tv image chart -->
    <div class="sidebar-item sidebar-bgm">
        <h3>{{ i18n "sidebarBangumiCh