sd4399340
V2EX  ›  问与答

hexo 中能否实现在 markdown 里引用 config 里定义的变量

  •  
  •   sd4399340 · Aug 2, 2014 · 6195 views
    This topic created in 4307 days ago, the information mentioned may be changed or developed.
    以前用jekyll的时候可以实现的,在hexo貌似不支持啊

    其实我就是想定义一个变量img_prefix = 七牛的地址,这样markdown里直接写图片的文件名就好了,这样以后即便要换cdn也很方便
    2 replies    2014-10-31 16:50:36 +08:00
    mintist
        1
    mintist  
       Aug 2, 2014
    hexo更新好快啊,我原来装的2.4.2的主题,新版本都不支持了,只能装的时候@2.4.2
    nozer
        2
    nozer  
       Oct 31, 2014
    这个插件或许可以解决你的问题: https://github.com/gyk001/hexo-qiniu-sync
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5806 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 02:54 · PVG 10:54 · LAX 19:54 · JFK 22:54
    ♥ Do have faith in what you're doing.