diff --git a/asset/docsify-baidu-push.js b/asset/docsify-baidu-push.js new file mode 100644 index 0000000000000000000000000000000000000000..27b1f7423e6ae0db542f3e6e853df0ebe5715203 --- /dev/null +++ b/asset/docsify-baidu-push.js @@ -0,0 +1,13 @@ +(function(){ + var plugin = function(hook) { + hook.doneEach(function() { + new Image().src = + '//api.share.baidu.com/s.gif?r=' + + encodeURIComponent(document.referrer) + + "&l=" + encodeURIComponent(location.href) + }) + } + var plugins = window.$docsify.plugins || [] + plugins.push(plugin) + window.$docsify.plugins = plugins +})() \ No newline at end of file diff --git a/index.html b/index.html index 8dd8605f086848e32530e6ae16368a978c8679b1..e600f95202c5ed50428081cc46ced74dbe38848a 100644 --- a/index.html +++ b/index.html @@ -86,5 +86,6 @@ +