Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ThemeTony/hugo-theme-tony.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/components/post/toc.html')
-rw-r--r--layouts/partials/components/post/toc.html16
1 files changed, 1 insertions, 15 deletions
diff --git a/layouts/partials/components/post/toc.html b/layouts/partials/components/post/toc.html
index 7599abb..191519f 100644
--- a/layouts/partials/components/post/toc.html
+++ b/layouts/partials/components/post/toc.html
@@ -16,21 +16,7 @@
</h4>
</div>
<ul id="article-index" class="index-ul">
- {{ range $headers }}
- {{ $header := . }}
- {{ range first 1 (findRE $re $header 1) }}
- {{ range findRE $renum . 1 }}
- {{ $next_heading := (cond (eq $h1_n 0) (sub (int .) 1 ) (int . ) ) }}
- {{ $anchorId := (replaceRE ".* id=\"(.*?)\".*" "$1" $header ) }}
- <a href="#{{ $anchorId }}">
- <li style="padding-left:23px" class="">
- <i class="ri-checkbox-blank-circle-line"></i>
- &nbsp;&nbsp;{{ $header | plainify | htmlUnescape }}
- </li>
- </a>
- {{ end }}
- {{ end }}
- {{ end }}
+ {{ .TableOfContents }}
</ul>
</div>
{{ end }}