diff --git a/components/Common.vue b/components/Common.vue index 71d1e33..40b0a09 100644 --- a/components/Common.vue +++ b/components/Common.vue @@ -166,6 +166,15 @@ export default { } } } + }, + + watch: { + $frontmatter (newVal, oldVal) { + if (newVal.home) { + this.hasKey() + this.hasPageKey() + } + } } }