gpt4 book ai didi

node.js - Vuejs/Nuxt 中每个页面的元数据一直显示为 "## Build Setup"?

转载 作者:行者123 更新时间:2023-12-05 03:19:45 25 4
gpt4 key购买 nike

我已经在 Nuxt 文档之后的每个页面中添加了单独的元数据,但是每当我在社交媒体上分享我的链接时,元数据只会显示这个“## build setup”。另一个问题是每个页面都显示相同的元数据。我读到您需要放置“hids”才能拥有单独的页面元数据,但似乎没有任何效果?

索引元:

<script>
export default {
head: {
title: 'Animal Crossing Portal | The Best Tier Lists for Animal Crossing',
meta: [
{ property: 'og:description', hid: 'og:description', name: 'og:description', content: 'Vote monthly in Animal Crossing Tier Lists for New Horizons & Pocket Camp! Including Villager Tier Lists, Sanrio, Gyroids & more at Animal Crossing Portal!' },
{ name: 'twitter:title', hid: 'twitter:title', content: 'Animal Crossing Portal | The Best Tier Lists for Animal Crossing' },
{ name: 'twitter:description', hid: 'twitter:description', content: 'Vote monthly in Animal Crossing Tier Lists for New Horizons & Pocket Camp! Including Villager Tier Lists, Sanrio, Gyroids & more at Animal Crossing Portal!' },
{ name: 'twitter:card', hid: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:image:src', hid: 'twitter:image:src', content: 'https://www.animalcrossingportal.com/images/meta.jpg' },
{ property: 'og:title', hid: 'og:title', name: 'og:title', content: 'Animal Crossing Portal | The Best Tier Lists for Animal Crossing' },
{ property: 'og:type', hid: 'og:type', content: 'website' },
{ property: 'og:site_name', hid: 'og:site_name', content: 'Animal Crossing Portal' },
{ property: 'og:url', hid: 'og:url', content: 'https://www.animalcrossingportal.com/' },
{ property: 'og:image', hid: 'og:image', content: 'https://www.animalcrossingportal.com/images/meta.jpg' }
],
link: [
{
rel: 'canonical',
href: 'https://www.animalcrossingportal.com/'
}
]
}
}
</script>

我的 nuxt.config.js 文件有:

head: {
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
}

最佳答案

元数据实际上位于 README.md 文件中,将其从那里移除已修复 OP 的问题!

关于node.js - Vuejs/Nuxt 中每个页面的元数据一直显示为 "## Build Setup"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73353561/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com