Question about https://newzone.top/web/VuePress.html#%E5%88%9D%E5%A7%8B%E9%85%8D%E7%BD%AE #13
Replies: 1 comment 4 replies
-
是的,用 SamKirkland/FTP-Deploy-Action@4.3.3 进行 FTP 同步的。最近,更新需要 5-15 分钟。
那是我理解错了,已更新备注。
“自动摘要失效” 可能是当时版本的原因。 “git 后参数并没发生变化” 我也想不起来了,应该是 delete 相关属性失败导致的。我不知道如何移除 opg 参数,当时参考了你给的示例并将其设置为空。 但是,即使值为空,问题仍然存在,之后就删除了相关的设置。 请问,应该如何删除 opg 相关属性?是按照以下方式将其设为 undefined 吗? import { seoPlugin } from "vuepress-plugin-seo2";
export default defineUserConfig({
...
plugins: [
seoPlugin({
hostname: "https://vuepress-theme-hope.github.io",
ogp: (ogp, page) => ({
...ogp,
"og:modified_time": "",
}),
pageFilter: (page) => ({
...page,
frontmatter: {
...page.frontmatter,
updatedTime: undefined,
},
}),
}),
],
}); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我对这页的内容存在比较大的疑问和部分异议,来问问。
这里你是用什么部署的?FTP么?
另外,这里的 filenameHasing 是 vue-cli 自己加的一个属性。拿到这里当例子很奇怪。就好比你按照 iOS 使用手册去设置 Android 结果无效,本不应该有效。另外本身为了防止应用程序出错,你也从不应该移除hash。
这里如果你想要移除,直接 delete 相关属性返回这个对象即可。“自动摘要失效” “git 后参数并没发生变化”是什么情况?如果觉得有问题欢迎开 issue
Beta Was this translation helpful? Give feedback.
All reactions