fix: fix toc css bug

This commit is contained in:
Dillon
2019-08-24 23:41:57 +08:00
parent 280ec376f4
commit 4f2ff40ef9
6 changed files with 36 additions and 33 deletions

View File

@@ -110,6 +110,7 @@
{{ $res := resources.Get "js/lib/smooth-scroll/smooth-scroll.polyfills.min.js" | resources.Minify }}
{{ $smooth_scroll = printf "<script src=\"%s\"></script>" $res.RelPermalink }}
{{ end }}
{{ $smooth_scroll = delimit (slice $smooth_scroll "<script>window.scroll = new SmoothScroll('[data-scroll]', {speed: 300, speedAsDuration: true});</script>") "" }}
{{ $jquery | safeHTML }}
{{ $lazysizes | safeHTML }}