diff options
author | indes <wl@live.it> | 2018-12-24 11:33:57 +0300 |
---|---|---|
committer | indes <wl@live.it> | 2018-12-24 11:33:57 +0300 |
commit | 9088034af03b9d3df9d68cd2399a951742fa2be4 (patch) | |
tree | 390fb75e61adb5d4bf26aeeb0d64c5316578e035 | |
parent | 99112419630a25529f7099b16a4c946e4ea48b91 (diff) |
Fix chinese toc anchor error
-rw-r--r-- | layouts/partials/scripts.html | 4 |
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 }} |