-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[功能建议]文章永久链接 #237
Comments
valaxy 的链接取决于你新建文件的标题名,同一个文件夹下并不会存在多个文件。在我看来,这已经解决了链接唯一性的问题,此外我认为语义化的链接也更为优雅。 你所期待的需求是什么? |
从hexo迁移后,原本文章的永久链接比如 |
可以放置在 或是新建 /rss https://yyj.moe/feed.xml 301
/blog https://yunyoujun.cn 301
/github https://github.com/YunYouJun 301
/twitter https://twitter.com/YunYouJun 301
/sponsors https://sponsors.yunyoujun.cn 301
/live https://live.bilibili.com/822719 301 地址映射在 Valaxy 的未来开发计划中,但暂时还未实现。(得再等一等了,或者欢迎 PR。 |
因为博客迁移,这几天谷歌广告和谷歌搜索都报了好多404错误。 |
如果是已经跳转到了 404 页面,这时候再加钩子应该是没用的。 可以做一个 301 redirects。 |
或者你想要的其实是不是就是一个 a -> b 路径的重定向? 感觉也可以通过一个数组脚本来做,批量生产带有 window.location.href = new link 的页面。 https://developers.cloudflare.com/pages/platform/redirects/ cloudflare 支持 redirects 和 proxy。 |
我在404.vue落地页做了一个跳转逻辑,如果route.path匹配就跳转,缺点是会先看到404再跳过去
[
{
"from": "2017-08-14-aaa",
"to": "aaa"
},
{
"from": "2017-08-27-bbb",
"to": "bbb"
},
]
github pages应该没办法做301了吧,看来还得迁移到cloudflare去 |
也可以加一个后处理脚本,直接拷贝一下 dist/xxx.html 为 dist/yyy.html。 (貌似这个也可以做个功能 |
我在看valaxy文档时,似乎并没有看到永久链接相关的功能
相关链接:
Hexo永久链接配置文档
Hexo-abbrlink项目
Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
The text was updated successfully, but these errors were encountered: