File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 179
179
} ,
180
180
plugins : [
181
181
DocsifyCarbon . create ( 'CEBI6KQE' , 'docsifyjsorg' ) ,
182
- // Plugin: Edit Document
182
+ // Plugin: Footer
183
183
function ( hook , vm ) {
184
184
hook . beforeEach ( html => {
185
185
if ( / g i t h u b u s e r c o n t e n t \. c o m / . test ( vm . route . file ) ) {
196
196
vm . route . file ;
197
197
}
198
198
199
- const editHTML = `<p><a href="${ url } " style="display: inline-flex; align-items: center; gap: 0.25em;">:memo: Edit Document</a></p>\n\n` ;
200
-
201
- return editHTML + html ;
202
- } ) ;
203
- } ,
204
- // Plugin: Powered by docsify
205
- function ( hook , vm ) {
206
- hook . beforeEach ( html => {
207
- const footerHTML = '<hr><p>Powered by docsify</p>\n' ;
199
+ const footerHTML = [
200
+ '<hr>' ,
201
+ '<div style="display: flex; align-items: center; justify-content: space-between;">' ,
202
+ ' <span>Powered by <a href="/">Docsify.js</a></span>' ,
203
+ ` <a href="${ url } " style="display: inline-flex; align-items: center; gap: 0.25em;">:memo: Edit Page</a>` ,
204
+ '</div>' ,
205
+ ] . join ( '\n' ) ;
208
206
209
207
return html + footerHTML ;
210
208
} ) ;
You can’t perform that action at this time.
0 commit comments