Skip to content

Commit 033f379

Browse files
committed
2020-11-23 12:51:35
1 parent 847f6c3 commit 033f379

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

asset/docsify-baidu-push.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,6 @@
8686
<script src="asset/prism-python.min.js"></script>
8787
<script>Prism.languages.py = Prism.languages.python</script>
8888
<script src="asset/docsify-copy-code.min.js"></script>
89+
<script src="asset/docsify-baidu-push.js"></script>
8990
</body>
9091
</html>

0 commit comments

Comments
 (0)