Plugin to strip Frontmatter
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
9fe062d826
commit
eff958d8ce
|
@ -4,4 +4,3 @@
|
||||||
* [Page3](pages/Page3.md)
|
* [Page3](pages/Page3.md)
|
||||||
* [Page4](pages/page-4.md)
|
* [Page4](pages/page-4.md)
|
||||||
|
|
||||||
<footer id="mb-footer"></footer>
|
|
||||||
|
|
|
@ -18,20 +18,27 @@
|
||||||
coverpage: true,
|
coverpage: true,
|
||||||
coverpage: '_coverpage.md',
|
coverpage: '_coverpage.md',
|
||||||
onlyCover: false,
|
onlyCover: false,
|
||||||
autoFooter: {
|
|
||||||
name: 'admin',
|
plugins: [
|
||||||
url: '/admin',
|
|
||||||
copyYear: '20124',
|
function (hook, vm) {
|
||||||
policy: false,
|
hook.beforeEach(function (html) {
|
||||||
terms: false,
|
|
||||||
cookies: false,
|
// Remove any possible front matter with the delimiters '---'
|
||||||
customStyle: false,
|
if (html.startsWith("---")) {
|
||||||
|
html = html.replace(/---(.|\n)*?---/, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return html
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/@markbattistella/docsify-sidebarfooter@latest"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue