2019-12-19 23:31:41 +08:00
|
|
|
<template>
|
|
|
|
<div class="personal-info-wrapper">
|
2019-12-28 23:53:30 +08:00
|
|
|
<img
|
|
|
|
class="personal-img"
|
|
|
|
v-if="$themeConfig.authorAvatar"
|
|
|
|
:src="$withBase($themeConfig.authorAvatar)"
|
|
|
|
alt="author-avatar"
|
|
|
|
>
|
|
|
|
<h3
|
|
|
|
class="name"
|
|
|
|
v-if="$themeConfig.author || $site.title"
|
|
|
|
>
|
|
|
|
{{ $themeConfig.author || $site.title }}
|
|
|
|
</h3>
|
2019-12-19 23:31:41 +08:00
|
|
|
<div class="num">
|
|
|
|
<div>
|
|
|
|
<h3>{{$recoPosts.length}}</h3>
|
|
|
|
<h6>文章</h6>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h3>{{$tags.list.length}}</h3>
|
|
|
|
<h6>标签</h6>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
2019-12-20 18:18:14 +08:00
|
|
|
</div>
|
2019-12-19 23:31:41 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.personal-info-wrapper {
|
|
|
|
.personal-img {
|
|
|
|
display block
|
|
|
|
margin 2rem auto
|
|
|
|
width 8rem
|
|
|
|
height 8rem
|
|
|
|
border-radius 50%
|
|
|
|
}
|
|
|
|
.name {
|
|
|
|
text-align center
|
|
|
|
color var(--text-color)
|
|
|
|
}
|
|
|
|
.num {
|
|
|
|
display flex
|
|
|
|
margin 0 auto 1rem
|
|
|
|
width 80%
|
|
|
|
> div {
|
|
|
|
text-align center
|
|
|
|
flex auto
|
|
|
|
&:first-child {
|
|
|
|
border-right 1px solid #333
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
line-height auto
|
|
|
|
margin 0 0 .6rem
|
|
|
|
color var(--text-color)
|
|
|
|
}
|
|
|
|
h6 {
|
|
|
|
line-height auto
|
|
|
|
color var(--text-color)
|
|
|
|
margin 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|