고정 페이지 HTML 문서 모드 추가 v1.5.1

This commit is contained in:
2026-05-26 11:03:33 +09:00
parent 0ad2ab3f9d
commit a25306389b
15 changed files with 169 additions and 14 deletions

View File

@@ -14,10 +14,16 @@ if (!page.value) {
statusMessage: '페이지를 찾을 수 없습니다.'
})
}
onMounted(() => {
if (page.value?.renderMode === 'html_document') {
window.location.replace(`/pages/${page.value.slug}`)
}
})
</script>
<template>
<article class="static-page mx-auto min-h-screen max-w-3xl px-6 py-16">
<article v-if="page.renderMode !== 'html_document'" class="static-page mx-auto min-h-screen max-w-3xl px-6 py-16">
<p class="static-page__eyebrow text-xs font-semibold uppercase text-muted">
Page
</p>
@@ -28,4 +34,5 @@ if (!page.value) {
<ContentMarkdownRenderer :content="page.content" />
</ContentRenderer>
</article>
<div v-else class="static-page__html-redirect min-h-screen" />
</template>