diff options
author | DSRKafuU | 2020-04-23 23:34:45 +0800 |
---|---|---|
committer | GitHub | 2020-04-23 23:34:45 +0800 |
commit | 50900be20164758f1ae3ef1fb18d65424bc98743 (patch) | |
tree | a01ec7f161f73deac667b4e51be4f374b9ea8f5b /layouts/partials/sidebar.html | |
parent | aaa441e5f2e065ebcf1e645f7924e9ef28b8d242 (diff) | |
parent | 29f2e593583861173b212c0495dec2e26206072b (diff) | |
download | hugo-theme-fuji-50900be20164758f1ae3ef1fb18d65424bc98743.tar.gz hugo-theme-fuji-50900be20164758f1ae3ef1fb18d65424bc98743.tar.bz2 hugo-theme-fuji-50900be20164758f1ae3ef1fb18d65424bc98743.zip |
Merge pull request #5 from amzrk2/dev
Merge v1.2.0 dev branch
Diffstat (limited to 'layouts/partials/sidebar.html')
-rw-r--r-- | layouts/partials/sidebar.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 61f2868..3b782c6 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,3 +1,9 @@ +{{ if in .Site.Params.mainSections .Type }} +<div id="widget-toc"> + <h5>{{ i18n "sidebarToc" }}</h5> + {{.TableOfContents}} +</div> +{{ end }} <div id="widget-pages"> <h5>{{ i18n "sidebarPages" }}</h5> <ul> @@ -32,6 +38,6 @@ {{ with .Site.Params.bgmImageChart }} <div id="widget-bgm"> <h5>{{ i18n "sidebarBangumiChart" }}</h5> - <img class="lazy" src="{{ $.Site.Params.cdnLazyloadSRC }}" data-src="https://bgm.tv/chart/img/{{ . }}" /> + <img class="lazyload" src="{{ $.Site.Params.cdnLazyPlaceholder }}" data-src="https://bgm.tv/chart/img/{{ . }}" /> </div> {{ end }}
\ No newline at end of file |