lady
V2EX  ›  问与答

hexo URL 问题

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