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)
|
||||
* [Page4](pages/page-4.md)
|
||||
|
||||
<footer id="mb-footer"></footer>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue