mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
28.48.2022 80ac09e4bccc060b7194ccfb09e9d64e10a1a6a2
feat: refactor toc as partial
1 files modified
1 files added
5 ■■■■■ changed files
layouts/_default/single.html 3 ●●●● patch | view | raw | blame | history
layouts/partials/toc.html 2 ●●●●● patch | view | raw | blame | history
layouts/_default/single.html
@@ -59,8 +59,7 @@
      {{- partial "expirationnote.html" . -}}
      {{- if (eq .Params.toc true) -}}
        <h3>Table of Contents</h3>
        {{ .TableOfContents }}
        {{- partial "toc.html" . -}}
      {{- end -}}
layouts/partials/toc.html
New file
@@ -0,0 +1,2 @@
<h3>Table of Contents</h3>
{{ .TableOfContents }}