1
0

feat: Allow injection of raw HTML strings inside <head>

This commit is contained in:
Zlendy
2025-04-11 18:13:38 +02:00
parent 965ba1ef76
commit ce26d8d3cb
3 changed files with 15 additions and 0 deletions
@@ -521,6 +521,7 @@ export class ClientServerService {
url: this.config.url,
title: this.meta.name ?? 'Sharkey',
desc: this.meta.description,
customHead: this.config.customHtml.head,
...await this.generateCommonPugData(this.meta),
...data,
});
@@ -45,6 +45,8 @@ html
link(rel='stylesheet' href=`/static-assets/fonts/sharkey-icons/style.css?version=${version}`)
link(rel='modulepreload' href=`/vite/${entry.file}`)
| !{customHead}
if !config.frontendManifestExists
script(type="module" src="/vite/@vite/client")