Skip to content

Commit 16c1685

Browse files
committed
update: docs and formatUpdated.
1 parent 6ee1c14 commit 16c1685

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/write-a-plugin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ window.$docsify = {
7575

7676
```js
7777
window.$docsify = {
78+
// The date template pattern
79+
formatUpdated: '{YYYY}/{MM}/{DD} {HH}:{mm}',
7880
plugins: [
7981
function(hook, vm) {
8082
hook.beforeEach(function(html) {

index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
},
7878
pathNamespaces: ['/es', '/de-de', '/ru-ru', '/zh-cn']
7979
},
80+
formatUpdated: '{YYYY}/{MM}/{DD} {HH}:{mm}',
8081
plugins: [
8182
DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'),
8283
function(hook, vm) {
@@ -98,6 +99,8 @@
9899
return (
99100
editHtml +
100101
html +
102+
'\n----\n' +
103+
'Last modified {docsify-updated}' +
101104
'\n\n----\n\n' +
102105
'<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
103106
);

0 commit comments

Comments
 (0)