Add page titles
This commit is contained in:
1 parent
e2e2fc7755
commit
cc0623ef4a
17 files changed
+38
-2
No files matched your search
+11
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user