1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-25 23:03:47 +01:00
Files
dozzle/assets/composables/title.ts
codeman1o1 2aaaf2ba1f Improve page title handling (#2365)
I tried my best with the translations.
Google Translate gives me the right English translation back for each language
2023-08-25 09:58:02 -07:00

10 lines
248 B
TypeScript

const { hostname } = config;
let subtitle = $ref("");
const title = $computed(() => (subtitle ? `${subtitle} - ` : "") + "Dozzle" + (hostname ? ` @ ${hostname}` : ""));
useTitle($$(title));
export function setTitle(t: string) {
subtitle = t;
}