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

Alexander Bilz
18.34.2022 a4d0e1406977f48b26d97da05b196c3fabb96499
refactor: implement toc as partial (#383)

1 files added
1 files modified
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
@@ -45,8 +45,7 @@
      {{- partial "expirationnote.html" . -}}
      {{- if (eq .Params.toc true) -}}
        <h3>Table of Contents</h3>
        {{ .TableOfContents }}
        {{- partial "toc.html" . -}}
      {{- end -}}
      {{ .Content }}
layouts/partials/toc.html
New file
@@ -0,0 +1,2 @@
<h3>Table of Contents</h3>
{{ .TableOfContents }}