From 503a39aa03e3aa9b71c1a0660e646f3ad7a728b6 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Wed, 29 Jul 2026 22:13:19 +0200 Subject: [PATCH] feat(legal): use HTML template at build to ensure an entire HTML document --- build/plugins/legal.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/build/plugins/legal.js b/build/plugins/legal.js index 7bf2620..98170eb 100644 --- a/build/plugins/legal.js +++ b/build/plugins/legal.js @@ -24,7 +24,28 @@ export default async function build () { const imprintMd = await readFile('./src/legal/imprint.md', { encoding: 'utf-8' }); const imprintHtml = md.render(imprintMd); - const imprintHtmlMinified = await minify(imprintHtml, { + const fullImprintHTML = ` + + + + + + Imprint + + + +
+

+ Imprint +

+
+
+ ${imprintHtml} +
+ +`; + + const imprintHtmlMinified = await minify(fullImprintHTML, { collapseWhitespace: true, collapseInlineTagWhitespace: true, removeComments: true