We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 847f6c3 commit 033f379Copy full SHA for 033f379
asset/docsify-baidu-push.js
@@ -0,0 +1,13 @@
1
+(function(){
2
+ var plugin = function(hook) {
3
+ hook.doneEach(function() {
4
+ new Image().src =
5
+ '//api.share.baidu.com/s.gif?r=' +
6
+ encodeURIComponent(document.referrer) +
7
+ "&l=" + encodeURIComponent(location.href)
8
+ })
9
+ }
10
+ var plugins = window.$docsify.plugins || []
11
+ plugins.push(plugin)
12
+ window.$docsify.plugins = plugins
13
+})()
index.html
@@ -86,5 +86,6 @@
86
<script src="asset/prism-python.min.js"></script>
87
<script>Prism.languages.py = Prism.languages.python</script>
88
<script src="asset/docsify-copy-code.min.js"></script>
89
+ <script src="asset/docsify-baidu-push.js"></script>
90
</body>
91
</html>
0 commit comments