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