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 8339876a091578c61f48ea12e8f8f27b5b7ae1bb..f854c38c0f7a0e4506702a3e9b47310bbab16bc5 100644 --- a/index.html +++ b/index.html @@ -86,5 +86,6 @@ +