head 인라인 스크립트로 data-theme 선적용, 로고 캐시 스플래시 추가. 메인 커버는 업로드 후 저장 버튼에서 이미지·텍스트 일괄 반영. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
644 B
Vue
33 lines
644 B
Vue
<script setup>
|
|
const { data: appSiteSettings } = await useFetch('/api/site-settings', {
|
|
key: 'site-settings-public',
|
|
default: () => ({
|
|
title: 'sori.studio',
|
|
faviconUrl: '',
|
|
logoUrl: '',
|
|
logoText: '井'
|
|
})
|
|
})
|
|
|
|
useHead(() => ({
|
|
titleTemplate: (titleChunk) => titleChunk
|
|
? `${titleChunk} · ${appSiteSettings.value.title}`
|
|
: appSiteSettings.value.title,
|
|
link: appSiteSettings.value.faviconUrl
|
|
? [
|
|
{
|
|
rel: 'icon',
|
|
type: 'image/png',
|
|
href: appSiteSettings.value.faviconUrl
|
|
}
|
|
]
|
|
: []
|
|
}))
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
</template>
|