diff --git a/components/Common.vue b/components/Common.vue index 40b0a09..fe04863 100644 --- a/components/Common.vue +++ b/components/Common.vue @@ -96,7 +96,7 @@ export default { }, pageClasses () { - const userPageClass = this.$page.frontmatter.pageClass + const userPageClass = this.$frontmatter.pageClass return [ { 'no-navbar': !this.shouldShowNavbar, diff --git a/components/Home.vue b/components/Home.vue index c7571a2..e30c0d7 100644 --- a/components/Home.vue +++ b/components/Home.vue @@ -6,7 +6,7 @@

{{ data.heroText || $title || '午后南杂' }}

{{ data.tagline || $description || 'Welcome to your vuePress-theme-reco site' }}

-

   华为,为中华而为之!

+

   华为,为中华而为之!

@@ -67,7 +67,7 @@ export default { return new Date().getFullYear() }, data() { - return this.$page.frontmatter; + return this.$frontmatter; }, actionLink() { diff --git a/components/HomeBlog.vue b/components/HomeBlog.vue index ce642b8..5163f43 100644 --- a/components/HomeBlog.vue +++ b/components/HomeBlog.vue @@ -1,10 +1,10 @@