generated from Seekra/repository-template
Feat(legal): legal notice #8
+22
-1
@@ -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 = `
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>
|
||||
Legal Notice
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>
|
||||
Legal Notice
|
||||
</h1>
|
||||
</header>
|
||||
<main>
|
||||
${legalNoticeHtml}
|
||||
</main>
|
||||
</body>
|
||||
</html>`;
|
||||
|
||||
const legalNoticeHtmlMinified = await minify(fullLegalNoticeHTML, {
|
||||
collapseWhitespace: true,
|
||||
conservativeCollapse: true,
|
||||
collapseInlineTagWhitespace: true,
|
||||
|
||||
Reference in New Issue
Block a user