Plugin to strip Frontmatter
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
nicholas 2024-03-07 20:20:55 +00:00
parent 9fe062d826
commit eff958d8ce
2 changed files with 17 additions and 11 deletions

View File

@ -4,4 +4,3 @@
* [Page3](pages/Page3.md)
* [Page4](pages/page-4.md)
<footer id="mb-footer"></footer>

View File

@ -18,20 +18,27 @@
coverpage: true,
coverpage: '_coverpage.md',
onlyCover: false,
autoFooter: {
name: 'admin',
url: '/admin',
copyYear: '20124',
policy: false,
terms: false,
cookies: false,
customStyle: false,
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
// Remove any possible front matter with the delimiters '---'
if (html.startsWith("---")) {
html = html.replace(/---(.|\n)*?---/, '');
}
return html
});
},
],
};
</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/@markbattistella/docsify-sidebarfooter@latest"></script>
</body>
</html>