V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
maroon5
V2EX  ›  问与答

hexo 如何链接本地 markdown

  •  
  •   maroon5 · 2019-05-10 09:58:09 +08:00 · 1582 次点击
    这是一个创建于 1811 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近弄了下 hexo,发现 markdown 无法互相链接,比如某个 md 里面写[x](x.md)这种,实在没找到办法,各位可有解?

    3 条回复    2019-05-10 13:53:24 +08:00
    yswape
        1
    yswape  
       2019-05-10 11:59:11 +08:00
    格式: {% post_link 文件名 链接文字 %}, 链接文字可省略

    如: hello.md
    ```
    {% post_link hello %}
    ```
    ```
    {% post_link hello 这是指向 hello 的链接 %}
    ```
    maroon5
        2
    maroon5  
    OP
       2019-05-10 13:47:24 +08:00
    @yswape [前言]\({% post_link README.md %}) 这样?试了下不行
    whitev2
        3
    whitev2  
       2019-05-10 13:53:24 +08:00
    你要的是不是这个东西? https://github.com/zhenyong/hexo-filter-file-link
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   978 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:54 · PVG 04:54 · LAX 13:54 · JFK 16:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.