From 018b3e5efdf0bfd19a03a6802947328c214d98ba 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 b2273c8..944a937 100644 --- a/build/plugins/legal.js +++ b/build/plugins/legal.js @@ -24,7 +24,28 @@ export default async function build () { const legalNoticeMd = await readFile('./src/legal/legal_notice.md', { encoding: 'utf-8' }); const legalNoticeHtml = md.render(legalNoticeMd); - const legalNoticeHtmlMinified = await minify(legalNoticeHtml, { + const fullLegalNoticeHTML = ` + + + + + + Legal Notice + + + +
+

+ Legal Notice +

+
+
+ ${legalNoticeHtml} +
+ +`; + + const legalNoticeHtmlMinified = await minify(fullLegalNoticeHTML, { collapseWhitespace: true, conservativeCollapse: true, collapseInlineTagWhitespace: true,