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) * [Page3](pages/Page3.md)
* [Page4](pages/page-4.md) * [Page4](pages/page-4.md)
<footer id="mb-footer"></footer>

View File

@ -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>