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

github.com/lingxz/er.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingyi Hu <lingyihuu@gmail.com>2018-12-25 13:08:32 +0300
committerGitHub <noreply@github.com>2018-12-25 13:08:32 +0300
commit1b57d43cc6568e7d0e84dd2dd952b140b4dadc4b (patch)
tree390fb75e61adb5d4bf26aeeb0d64c5316578e035
parent99112419630a25529f7099b16a4c946e4ea48b91 (diff)
parent9088034af03b9d3df9d68cd2399a951742fa2be4 (diff)
Merge pull request #12 from indes/fix
Fix chinese toc anchor error
-rw-r--r--layouts/partials/scripts.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index c9cfa7e..6d9ecc5 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -2,8 +2,8 @@
{{ $headers := findRE "<h[1-6].*?>(.|\n])+?</h[1-6]>" .Content }}
{{ $has_headers := ge (len $headers) 1 }}
{{ if and $has_headers (ne .Params.toc false) }}
-<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.1.1/tocbot.min.js"></script>
-<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.1.1/tocbot.css">
+<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.4.2/tocbot.min.js"></script>
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.4.2/tocbot.css">
<style>.is-active-link::before { background-color: var(--secondary-color); }</style>
{{ end }}
{{ end }}