maroon5
V2EX  ›  问与答

hexo 如何链接本地 markdown

  •  
  •   maroon5 · May 10, 2019 · 2225 views
    This topic created in 2588 days ago, the information mentioned may be changed or developed.

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

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

    如: hello.md
    ```
    {% post_link hello %}
    ```
    ```
    {% post_link hello 这是指向 hello 的链接 %}
    ```
    maroon5
        2
    maroon5  
    OP
       May 10, 2019
    @yswape [前言]\({% post_link README.md %}) 这样?试了下不行
    whitev2
        3
    whitev2  
       May 10, 2019
    你要的是不是这个东西? https://github.com/zhenyong/hexo-filter-file-link
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5434 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 07:07 · PVG 15:07 · LAX 00:07 · JFK 03:07
    ♥ Do have faith in what you're doing.