avoid doctype output? #512
-
Hi there, When Lume compiles an However, as I'm using Lume to create snippets (not entire HTML pages) the doctype is superfluous, and gets in the way. Is it possible to suppress this behavior? Would this require work in Lume, or perhaps in the NJK engine instead? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You can remove it using the following processor: site.process([".html"], (page) => {
page.content = page.content.replace("<!DOCTYPE html>\n", "");
}); |
Beta Was this translation helpful? Give feedback.
-
Is this possible to do with Vento? |
Beta Was this translation helpful? Give feedback.
You can remove it using the following processor: