Skip to content

Commit 2840ac5

Browse files
docs: Update docsify-updated to prevent replacement (#1574)
Co-authored-by: Koy <[email protected]>
1 parent 74f17a0 commit 2840ac5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: docs/write-a-plugin.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ window.$docsify = {
8787
editHtml +
8888
html +
8989
'\n----\n' +
90-
'Last modified {docsify-updated} ' +
90+
'Last modified {docsify-updated}' +
9191
editHtml
9292
);
9393
});
@@ -108,4 +108,5 @@ Current version: <span id='tip-version'>loading</span>
108108

109109
<script>
110110
document.getElementById('tip-version').innerText = Docsify.version
111+
document.getElementsByClassName("lang-js")[2].innerHTML = document.getElementsByClassName("lang-js")[2].innerHTML.replace(/Last modified .*'/,"Last modified {docsify-updated<span>}'</span>")
111112
</script>

0 commit comments

Comments
 (0)