diff --git a/static/js/aside.js b/assets/js/aside.js
similarity index 97%
rename from static/js/aside.js
rename to assets/js/aside.js
index 8b82524ae..319e4613d 100644
--- a/static/js/aside.js
+++ b/assets/js/aside.js
@@ -74,9 +74,9 @@ var bindClickLink = function() {
}
var initScrollByHash = function() {
- var hash = window.location.hash
+ var hash = decodeURI(window.location.hash)
var element = $(hash)
- if (element) {
+ if (element.length > 0) {
setTimeout(function() {
scrollToElement(hash)
})
diff --git a/static/js/markdown-tab.js b/assets/js/markdown-tab.js
similarity index 100%
rename from static/js/markdown-tab.js
rename to assets/js/markdown-tab.js
diff --git a/layouts/docs/single.html b/layouts/docs/single.html
index 51ddd45ff..cdb094065 100644
--- a/layouts/docs/single.html
+++ b/layouts/docs/single.html
@@ -150,8 +150,14 @@
{{ end }}
-
-
+{{ $aside := resources.Get "js/aside.js" }}
+{{ $asideJS := $aside | resources.Fingerprint "sha512" }}
+
+
+{{ $tab := resources.Get "js/markdown-tab.js" }}
+{{ $tabJS := $tab | resources.Fingerprint "sha512" }}
+
+
-
-
+ {{ $aside := resources.Get "js/aside.js" }}
+ {{ $asideJS := $aside | resources.Fingerprint "sha512" }}
+
+
+ {{ $tab := resources.Get "js/markdown-tab.js" }}
+ {{ $tabJS := $tab | resources.Fingerprint "sha512" }}
+
+