summaryrefslogtreecommitdiff
path: root/layouts/_partials/posts/toc.html
blob: 7a4a63cfc90d8cbc9601cefdc0f147973947b59f (plain)
1
2
3
4
5
6
7
8
9
{{ if .Params.toc }}
<div id="toc-container"
    class="absolute bottom-0 right-[calc(50%_+_var(--page-width)_/_2)] left-auto
    h-full top-[12rem] hidden xl:block">
    <div id="toc"
        class="sticky top-12 text-size-sm 2xl:text-size-base px-8"
    >{{ .TableOfContents }}</div>
</div>
{{ end }}