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

github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramazingrise <8315221+AmazingRise@users.noreply.github.com>2020-07-13 18:07:04 +0300
committeramazingrise <8315221+AmazingRise@users.noreply.github.com>2020-07-13 18:07:04 +0300
commitdf3b6684610d783fdd7f2525da1c31f3a9349ca3 (patch)
tree8275942e29b35ec9f3f5e6c7dceac1dccf08bb29 /layouts
parent248b6008b45ee9af2dcbdc6e8af9285c3eb9f2e8 (diff)
Fix #54
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/toc.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
index 667b12c..ee6736e 100644
--- a/layouts/partials/toc.html
+++ b/layouts/partials/toc.html
@@ -28,7 +28,7 @@
{{ end }}
{{ $anchorId := (replaceRE ".* id=\"(.*?)\".*" "$1" $header ) }}
<li>
- <a href="#{{ $anchorId }}" onclick="collapseOthers(`#{{ $anchorId | safeJS}}-nav`)" id="{{ $anchorId }}-nav">
+ <a href="#{{ $anchorId }}" onclick="onNavClick(`#{{ $anchorId | safeJS}}-nav`)" id="{{ $anchorId }}-nav">
{{ $header | plainify | htmlUnescape }}
</a>
</li>