Add page titles

This commit is contained in:
lucast committed 2026-09-30 01:50:01 +02:00
1 parent e2e2fc7755
commit cc0623ef4a
17 files changed
+38 -2

No files matched your search

+11
View File
@@ -1,3 +1,14 @@
<script setup lang="ts">
const { currentSong, isPlaying } = usePlayer()
useHead({
titleTemplate: (titleChunk) =>
currentSong.value && isPlaying.value
? `${currentSong.value.name} - Now Playing - Music`
: `${titleChunk || "Home"} - Music`,
})
</script>
<template>
<ToastContainer />
<NuxtLayout>