Skip to content

Commit b035683

Browse files
committed
💪(*): Add header and footer
1 parent 2a326d9 commit b035683

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/index.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,30 @@
4343
tabComments: true,
4444
tabHeadings: true,
4545
},
46+
// 更新日期
47+
formatUpdated: '{YYYY}-{MM}-{DD} {HH}:{mm}:{ss}',
48+
// 插件
49+
plugins: [
50+
function(hook, vm) {
51+
// 底部
52+
hook.beforeEach(function(content) {
53+
var url ='https://github.com/JalanJiang/leetcode-notebook/tree/master/docs/' + vm.route.file;
54+
var editHtml = '> 🧐发现错误,想一起完善?[在 Github 编辑此页](' + url +')!\n'
55+
56+
var footer = [
57+
'----',
58+
'> Last modified {docsify-updated}.',
59+
'> [Jalan](http://jalan.space/), [Csming](https://csming1995.github.io/) ©2019. Proudly published with [docsify](https://github.com/docsifyjs/docsify) and powered by love.',
60+
].join("\n");
61+
62+
return editHtml
63+
+ "\n----\n"
64+
+ content
65+
+ "\n\n"
66+
+ footer
67+
})
68+
},
69+
]
4670
}
4771
</script>
4872
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>

0 commit comments

Comments
 (0)