Skip to content

Commit 2dcbfc9

Browse files
authored
chore: modify configuration for lastModified plugin (doocs#1668)
1 parent 7595c3e commit 2dcbfc9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

main.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@ const cleanedHtml = html => {
99

1010
window.addEventListener('hashchange', () => {
1111
window.$docsify.loadSidebar = sidebar();
12-
window.$docsify.pagination.previousText = isEn() ? 'PREVIOUS' : '上一题';
13-
window.$docsify.pagination.nextText = isEn() ? 'NEXT' : '下一题';
1412
});
1513

1614
window.$docsify = {
1715
name: 'leetcode',
1816
repo: 'doocs/leetcode',
19-
lastModifiedConfig: {
20-
reg: /README_EN$/,
21-
en: 'Last updated: ',
22-
zh: '最近更新时间:',
17+
lastModifiedText: {
18+
'/README_EN': 'Last updated: ',
19+
'/': '最近更新时间:',
2320
},
2421
logo: '/images/doocs-leetcode.png',
2522
search: {

0 commit comments

Comments
 (0)