|
47 | 47 | @getCurrentPage="getCurrentPage" /> |
48 | 48 | </div> |
49 | 49 | <div class="info-wrapper"> |
50 | | - <img class="personal-img" :src="$frontmatter.faceImage ? $withBase($frontmatter.faceImage) : require('../images/home-head.png')" alt="hero"> |
51 | | - <h3 class="name" v-if="$themeConfig.author || $site.title">{{ $themeConfig.author || $site.title }}</h3> |
52 | | - <div class="num"> |
53 | | - <div> |
54 | | - <h3>{{$recoPosts.length}}</h3> |
55 | | - <h6>文章</h6> |
56 | | - </div> |
57 | | - <div> |
58 | | - <h3>{{$tags.list.length}}</h3> |
59 | | - <h6>标签</h6> |
60 | | - </div> |
61 | | - </div> |
62 | | - <hr> |
| 50 | + <PersonalInfo/> |
63 | 51 | <h4><i class="iconfont reco-category"></i> 分类</h4> |
64 | 52 | <ul class="category-wrapper"> |
65 | 53 | <li class="category-item" v-for="(item, index) in this.$categories.list" :key="index"> |
@@ -90,12 +78,13 @@ import FriendLink from '@theme/components/FriendLink' |
90 | 78 | import NoteAbstract from '@theme/components/NoteAbstract' |
91 | 79 | import pagination from '@theme/mixins/pagination' |
92 | 80 | import ModuleTransition from '@theme/components/ModuleTransition' |
| 81 | +import PersonalInfo from '@theme/components/PersonalInfo' |
93 | 82 | import { getOneColor } from '@theme/helpers/other' |
94 | 83 | import moduleTransitonMixin from '@theme/mixins/moduleTransiton' |
95 | 84 |
|
96 | 85 | export default { |
97 | 86 | mixins: [pagination, moduleTransitonMixin], |
98 | | - components: { NoteAbstract, TagList, FriendLink, ModuleTransition }, |
| 87 | + components: { NoteAbstract, TagList, FriendLink, ModuleTransition, PersonalInfo }, |
99 | 88 | data () { |
100 | 89 | return { |
101 | 90 | recoShow: false, |
@@ -248,39 +237,6 @@ export default { |
248 | 237 | &:hover { |
249 | 238 | box-shadow: var(--box-shadow-hover); |
250 | 239 | } |
251 | | - .personal-img { |
252 | | - display block |
253 | | - margin 2rem auto |
254 | | - width 8rem |
255 | | - height 8rem |
256 | | - border-radius 50% |
257 | | - } |
258 | | - .name { |
259 | | - text-align center |
260 | | - color var(--text-color) |
261 | | - } |
262 | | - .num { |
263 | | - display flex |
264 | | - margin 0 auto 1rem |
265 | | - width 80% |
266 | | - > div { |
267 | | - text-align center |
268 | | - flex auto |
269 | | - &:first-child { |
270 | | - border-right 1px solid #333 |
271 | | - } |
272 | | - h3 { |
273 | | - line-height auto |
274 | | - margin 0 0 .6rem |
275 | | - color var(--text-color) |
276 | | - } |
277 | | - h6 { |
278 | | - line-height auto |
279 | | - color var(--text-color) |
280 | | - margin 0 |
281 | | - } |
282 | | - } |
283 | | - } |
284 | 240 | h4 { |
285 | 241 | color var(--text-color) |
286 | 242 | } |
|
0 commit comments