Skip to content

Commit a5212e2

Browse files
committed
Move edit link to footer
1 parent 901f678 commit a5212e2

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Diff for: docs/index.html

+8-10
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
},
180180
plugins: [
181181
DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'),
182-
// Plugin: Edit Document
182+
// Plugin: Footer
183183
function (hook, vm) {
184184
hook.beforeEach(html => {
185185
if (/githubusercontent\.com/.test(vm.route.file)) {
@@ -196,15 +196,13 @@
196196
vm.route.file;
197197
}
198198

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');
208206

209207
return html + footerHTML;
210208
});

0 commit comments

Comments
 (0)