mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
parent
f714a0c648
commit
97b59bfc76
@ -14,7 +14,7 @@ const { theme } = useData()
|
||||
const colors = useTagColors()
|
||||
const { categories: categoriesLink, tags: tagsLink } = useInternalLink()
|
||||
|
||||
const createTime = computed(() => props.post.createTime?.split(' ')[0].replace(/\//g, '-'))
|
||||
const createTime = computed(() => props.post.createTime?.split(/\s|T/)[0].replace(/\//g, '-'))
|
||||
const categoryList = computed(() => props.post.categoryList ?? [])
|
||||
|
||||
const sticky = computed(() => {
|
||||
|
||||
@ -16,7 +16,7 @@ const createTime = computed(() => {
|
||||
if (!show || (show === 'only-blog' && !isBlogPost.value))
|
||||
return ''
|
||||
if (matter.value.createTime)
|
||||
return matter.value.createTime.split(' ')[0].replace(/\//g, '-')
|
||||
return matter.value.createTime.split(/\s|T/)[0].replace(/\//g, '-')
|
||||
|
||||
return ''
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user