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() { setup() {
const pageData = usePageData() const pageData = usePageData()
const next = computed(() => { const next = computed(() => {
if (pageData.value.frontmatter.next === false) {
return undefined
}
return pageData.value.next return pageData.value.next
}) })
const prev = computed(() => { const prev = computed(() => {
if (pageData.value.frontmatter.prev === false) {
return undefined
}
return pageData.value.prev return pageData.value.prev
}) })
const hasLinks = computed(() => { const hasLinks = computed(() => {

Loading…
Cancel
Save