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
No known key found for this signature in database
GPG key ID: A9B6E750D846FC91
3 changed files with 15 additions and 0 deletions

View file

@ -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,
});

View file

@ -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")