lady
V2EX  ›  问与答

hexo URL 问题

  •  
  •   lady · Oct 7, 2014 · 3693 views
    This topic created in 4409 days ago, the information mentioned may be changed or developed.
    使用hexo g时之前的文章链接全部都会变化?不知道hexo 用户是否有遇到这个问题,是怎样解决的?
    10 replies  •  2014-10-07 20:33:53 +08:00
    wozhapen
    wozhapen
    Oct 7, 2014
    2
    @lady 没发现问题呀,_config.yaml里默认设置不就是permalink: :year/:month/:day/:title/,按理说链接不会变呀。。挺好的我这个,http://wozhapen.gitcafe.com 。
    ytf4425
    ytf4425
    Oct 7, 2014
    3
    你提到的链接过长问题去_config.yaml找permalink设置,url中title根据我的使用经验来看读取的是文件名(source/_posts/文件夹中的文件)中的标题
    你可以设置的简单一点比如2014-08-30-kai-xue.markdown
    出来的效果应该就是https://wuaidu.com/html/kai-xue.html
    这样差不多的
    lady
    lady
    OP
    Oct 7, 2014
    4
    不是我是说修改为permalink: :year/:month/:day/:id/ 会变化
    lady
    lady
    OP
    Oct 7, 2014
    5
    @ytf4425 嗯等一下测试一下
    wozhapen
    wozhapen
    Oct 7, 2014
    6
    @ytf4425 恩,是的,每次写文章hexo n title的时候,title短一点且英文,链接就会很好看,然后在title.md 中的title改成想要的中文就行了。
    ytf4425
    ytf4425
    Oct 7, 2014
    7
    @wozhapen 卧槽?hexo有新建文章命令?
    我一直是复制之前的文章然后改内容的。。
    我只知道jekyll和octopress是有命令的
    jerryjhou
    jerryjhou
    Oct 7, 2014 via Android
    8
    证书报错,Android Chrome,注意配置证书链
    lady
    lady
    OP
    Oct 7, 2014
    9
    @jerryjhou 嗯我也测试了,还在排查测试中
    lady
    lady
    OP
    Oct 7, 2014
    10
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3782 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 173ms · UTC 00:58 · PVG 08:58 · LAX 16:58 · JFK 19:58
    ♥ Do have faith in what you're doing.