feat: disable links when explicity set false

pull/61/head
Yugo Ogura 5 years ago
parent 19f7f30fe3
commit 1be254dbc7

@ -5,9 +5,15 @@ export default defineComponent({
setup() {
const pageData = usePageData()
const next = computed(() => {
if (pageData.value.frontmatter.next === false) {
return undefined
}
return pageData.value.next
})
const prev = computed(() => {
if (pageData.value.frontmatter.prev === false) {
return undefined
}
return pageData.value.prev
})
const hasLinks = computed(() => {

Loading…
Cancel
Save