From 16c1685b00dbe3a7b625f7ccf0a31ebc4df4ba54 Mon Sep 17 00:00:00 2001 From: i544693 <369491420@qq.com> Date: Mon, 4 Oct 2021 21:28:46 +0800 Subject: [PATCH 1/2] update: docs and formatUpdated. --- docs/write-a-plugin.md | 2 ++ index.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docs/write-a-plugin.md b/docs/write-a-plugin.md index 0d605add8..5495a8771 100644 --- a/docs/write-a-plugin.md +++ b/docs/write-a-plugin.md @@ -75,6 +75,8 @@ window.$docsify = { ```js window.$docsify = { + // The date template pattern + formatUpdated: '{YYYY}/{MM}/{DD} {HH}:{mm}', plugins: [ function(hook, vm) { hook.beforeEach(function(html) { diff --git a/index.html b/index.html index 40758b605..9eec13441 100644 --- a/index.html +++ b/index.html @@ -77,6 +77,7 @@ }, pathNamespaces: ['/es', '/de-de', '/ru-ru', '/zh-cn'] }, + formatUpdated: '{YYYY}/{MM}/{DD} {HH}:{mm}', plugins: [ DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'), function(hook, vm) { @@ -98,6 +99,8 @@ return ( editHtml + html + + '\n----\n' + + 'Last modified {docsify-updated}' + '\n\n----\n\n' + 'Powered by docsify' ); From 60428ceb79076f93f665de6ea42ff325730191dd Mon Sep 17 00:00:00 2001 From: Koy Date: Tue, 5 Oct 2021 16:45:17 +0800 Subject: [PATCH 2/2] Update index.html --- index.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/index.html b/index.html index 9eec13441..40758b605 100644 --- a/index.html +++ b/index.html @@ -77,7 +77,6 @@ }, pathNamespaces: ['/es', '/de-de', '/ru-ru', '/zh-cn'] }, - formatUpdated: '{YYYY}/{MM}/{DD} {HH}:{mm}', plugins: [ DocsifyCarbon.create('CEBI6KQE', 'docsifyjsorg'), function(hook, vm) { @@ -99,8 +98,6 @@ return ( editHtml + html + - '\n----\n' + - 'Last modified {docsify-updated}' + '\n\n----\n\n' + 'Powered by docsify' );