mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(theme): ensure friends description from user
This commit is contained in:
parent
d52856f0fc
commit
3ba41b90b8
@ -7,7 +7,7 @@ import { computed } from 'vue'
|
||||
import { useData, useEditLink } from '../composables/index.js'
|
||||
|
||||
const editLink = useEditLink()
|
||||
const { frontmatter: matter } = useData<'friends'>()
|
||||
const { frontmatter: matter, page } = useData<'friends'>()
|
||||
|
||||
const list = computed(() => matter.value.list || [])
|
||||
const groups = computed(() => matter.value.groups || [])
|
||||
@ -20,7 +20,7 @@ const groups = computed(() => matter.value.groups || [])
|
||||
<h2 class="title">
|
||||
{{ matter.title || 'My Friends' }}
|
||||
</h2>
|
||||
<p v-if="matter.description" class="description">
|
||||
<p v-if="matter.description && !page.autoDesc" class="description">
|
||||
{{ matter.description }}
|
||||
</p>
|
||||
<section v-if="list.length" class="friends-list">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user