MitseaBlog/themes/hugo-theme-stack/layouts/partials/widget/toc.html

12 lines
390 B
HTML
Raw Permalink Normal View History

2022-10-11 17:34:41 +08:00
{{ if (.Context.Scratch.Get "TOCEnabled") }}
<section class="widget archives">
<div class="widget-icon">
{{ partial "helper/icon" "hash" }}
</div>
<h2 class="widget-title section-title">{{ T "article.tableOfContents" }}</h2>
<div class="widget--toc">
{{ .Context.TableOfContents }}
</div>
</section>
{{ end }}