change: huawei text hidden by default
This commit is contained in:
parent
c3087a94a2
commit
944b0a0aad
@ -96,7 +96,7 @@ export default {
|
||||
},
|
||||
|
||||
pageClasses () {
|
||||
const userPageClass = this.$page.frontmatter.pageClass
|
||||
const userPageClass = this.$frontmatter.pageClass
|
||||
return [
|
||||
{
|
||||
'no-navbar': !this.shouldShowNavbar,
|
||||
|
@ -6,7 +6,7 @@
|
||||
<h1 v-if="data.isShowTitleInHome !== false">{{ data.heroText || $title || '午后南杂' }}</h1>
|
||||
|
||||
<p class="description">{{ data.tagline || $description || 'Welcome to your vuePress-theme-reco site' }}</p>
|
||||
<p class="huawei" v-if="$themeConfig.huawei !== false"><i class="iconfont reco-huawei" style="color: #fc2d38"></i> 华为,为中华而为之!</p>
|
||||
<p class="huawei" v-if="$themeConfig.huawei === true"><i class="iconfont reco-huawei" style="color: #fc2d38"></i> 华为,为中华而为之!</p>
|
||||
|
||||
<p class="action" v-if="data.actionText && data.actionLink">
|
||||
<NavLink class="action-button" :item="actionLink"/>
|
||||
@ -67,7 +67,7 @@ export default {
|
||||
return new Date().getFullYear()
|
||||
},
|
||||
data() {
|
||||
return this.$page.frontmatter;
|
||||
return this.$frontmatter;
|
||||
},
|
||||
|
||||
actionLink() {
|
||||
|
@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div class="home-blog" :class="recoShow?'reco-show': 'reco-hide'">
|
||||
<div class="hero" :style="{background: `url(${$page.frontmatter.bgImage || require('../images/home-bg.jpg')}) center/cover no-repeat`, ...bgImageStyle}">
|
||||
<div class="hero" :style="{background: `url(${$frontmatter.bgImage || require('../images/home-bg.jpg')}) center/cover no-repeat`, ...bgImageStyle}">
|
||||
<h1>{{ data.heroText || $title || '午后南杂' }}</h1>
|
||||
|
||||
<p class="description">{{ data.tagline || $description || 'Welcome to your vuePress-theme-reco site' }}</p>
|
||||
<p class="huawei" v-if="$themeConfig.huawei !== false"><i class="iconfont reco-huawei" style="color: #fc2d38"></i> 华为,为中华而为之!</p>
|
||||
<p class="huawei" v-if="$themeConfig.huawei === true"><i class="iconfont reco-huawei" style="color: #fc2d38"></i> 华为,为中华而为之!</p>
|
||||
</div>
|
||||
|
||||
<div class="home-blog-wrapper">
|
||||
@ -15,7 +15,7 @@
|
||||
:data="posts"
|
||||
:currentPage="1"></note-abstract>
|
||||
<div class="info-wrapper">
|
||||
<img class="personal-img" :src="$page.frontmatter.faceImage || $themeConfig.logo" alt="hero">
|
||||
<img class="personal-img" :src="$frontmatter.faceImage || $themeConfig.logo" alt="hero">
|
||||
<h3 class="name" v-if="$themeConfig.author || $site.title">{{ $themeConfig.author || $site.title }}</h3>
|
||||
<div class="num">
|
||||
<div>
|
||||
@ -117,7 +117,7 @@ export default {
|
||||
return new Date().getFullYear()
|
||||
},
|
||||
data() {
|
||||
return this.$page.frontmatter;
|
||||
return this.$frontmatter;
|
||||
},
|
||||
|
||||
actionLink() {
|
||||
@ -200,9 +200,9 @@ export default {
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 4rem auto 1.8rem ;
|
||||
margin:10% auto 1.8rem ;
|
||||
font-size: 2.5rem;
|
||||
color #fff
|
||||
color #fff;
|
||||
}
|
||||
|
||||
h1, .description, .action, .huawei {
|
||||
|
@ -25,7 +25,7 @@
|
||||
<AlgoliaSearchBox
|
||||
v-if="isAlgoliaSearch"
|
||||
:options="algolia"/>
|
||||
<SearchBox v-else-if="$themeConfig.search !== false && $page.frontmatter.search !== false"/>
|
||||
<SearchBox v-else-if="$themeConfig.search !== false && $frontmatter.search !== false"/>
|
||||
<NavLinks class="can-hide"/>
|
||||
</div>
|
||||
</header>
|
||||
|
@ -87,7 +87,7 @@ export default {
|
||||
|
||||
computed: {
|
||||
isTimeLine () {
|
||||
return this.$page.frontmatter.isTimeLine
|
||||
return this.$frontmatter.isTimeLine
|
||||
},
|
||||
lastUpdated () {
|
||||
return this.$page.lastUpdated
|
||||
@ -104,7 +104,7 @@ export default {
|
||||
},
|
||||
|
||||
prev () {
|
||||
const prev = this.$page.frontmatter.prev
|
||||
const prev = this.$frontmatter.prev
|
||||
if (prev === false) {
|
||||
return
|
||||
} else if (prev) {
|
||||
@ -115,7 +115,7 @@ export default {
|
||||
},
|
||||
|
||||
next () {
|
||||
const next = this.$page.frontmatter.next
|
||||
const next = this.$frontmatter.next
|
||||
if (next === false) {
|
||||
return
|
||||
} else if (next) {
|
||||
@ -126,7 +126,7 @@ export default {
|
||||
},
|
||||
|
||||
editLink () {
|
||||
if (this.$page.frontmatter.editLink === false) {
|
||||
if (this.$frontmatter.editLink === false) {
|
||||
return
|
||||
}
|
||||
const {
|
||||
|
@ -30,7 +30,7 @@ export default {
|
||||
: selfActive
|
||||
const link = renderLink(h, item.path, item.title || item.path, active)
|
||||
|
||||
const configDepth = $page.frontmatter.sidebarDepth
|
||||
const configDepth = $frontmatter.sidebarDepth
|
||||
|| sidebarDepth
|
||||
|| $themeLocaleConfig.sidebarDepth
|
||||
|| $themeConfig.sidebarDepth
|
||||
|
@ -12,7 +12,7 @@ export default {
|
||||
computed: {
|
||||
// 是否显示评论
|
||||
isShowComment () {
|
||||
const frontmatter = this.$page.frontmatter
|
||||
const frontmatter = this.$frontmatter
|
||||
return this.isComment == false || frontmatter.isComment == false || frontmatter.home == true ? false : true
|
||||
}
|
||||
},
|
||||
|
@ -47,7 +47,7 @@ export default {
|
||||
},
|
||||
// 标题只显示分类名称
|
||||
title () {
|
||||
return this.$page.frontmatter.title.split('|')[0]
|
||||
return this.$frontmatter.title.split('|')[0]
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<Common>
|
||||
<Home v-if="$page.frontmatter.home && $themeConfig.type !== 'blog'"/>
|
||||
<HomeBlog v-else-if="$page.frontmatter.home && $themeConfig.type === 'blog'"/>
|
||||
<Home v-if="$frontmatter.home && $themeConfig.type !== 'blog'"/>
|
||||
<HomeBlog v-else-if="$frontmatter.home && $themeConfig.type === 'blog'"/>
|
||||
<Page
|
||||
v-else
|
||||
:sidebar-items="sidebarItems">
|
||||
|
Loading…
Reference in New Issue
Block a user