fix: open graph on home page
parent
071c65e935
commit
d674fd4791
|
@ -110,7 +110,7 @@ export default defineConfig({
|
|||
'meta',
|
||||
{
|
||||
name: 'description',
|
||||
content: '跨性别和多元性别人群健康照护指南第八版(SOC-8)',
|
||||
content: siteDescription,
|
||||
},
|
||||
])
|
||||
|
||||
|
@ -168,6 +168,10 @@ export default defineConfig({
|
|||
if (pageSourceFileContent.length > 100)
|
||||
pageContent += '...'
|
||||
|
||||
if (context.pageData.frontmatter?.layout === 'home') {
|
||||
pageContent = context.pageData.frontmatter?.hero?.tagline ?? siteDescription
|
||||
}
|
||||
|
||||
head.push([
|
||||
'meta',
|
||||
{ name: 'description', content: pageContent },
|
||||
|
|
|
@ -5,7 +5,7 @@ layout: home
|
|||
hero:
|
||||
name: "RLE.wiki"
|
||||
text: "一份 RLE 指北"
|
||||
tagline: 欢迎大家来到 RLE.wiki. 这是一份给跨性别者们的 RLE 指南。部分内容由 MtF.wiki 迁移而来,更多帮助正在路上,敬请期待。
|
||||
tagline: 欢迎大家来到 RLE.wiki. 这是一份给跨性别者与性别多元群体的 RLE 指南。更多帮助正在路上,敬请期待……
|
||||
actions:
|
||||
- theme: brand
|
||||
text: 大学指南 🏫
|
||||
|
@ -33,7 +33,7 @@ import HomeContent from './.vitepress/theme/components/HomeContent.vue'
|
|||
:::
|
||||
|
||||
::: tip ℹ️
|
||||
本项目的内容包括且不仅限于校园指南,后期会加入其他 RLE 指导。当前处于建设初期,其他条目暂未完成,欢迎大家帮助项目完善。
|
||||
网站当前处于建设初期,条目暂未完成,欢迎大家帮助项目完善。
|
||||
:::
|
||||
|
||||
::: info 🕯️
|
||||
|
|
Loading…
Reference in New Issue