diff options
author | Lingyi Hu <lingyihuu@gmail.com> | 2018-12-25 13:08:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-25 13:08:32 +0300 |
commit | 1b57d43cc6568e7d0e84dd2dd952b140b4dadc4b (patch) | |
tree | 390fb75e61adb5d4bf26aeeb0d64c5316578e035 | |
parent | 99112419630a25529f7099b16a4c946e4ea48b91 (diff) | |
parent | 9088034af03b9d3df9d68cd2399a951742fa2be4 (diff) |
Merge pull request #12 from indes/fix
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 }} |