고정 페이지 HTML 문서 모드 추가 v1.5.1
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user