hexo 如何链接本地 markdown

2019-05-10 09:58:09 +08:00
 maroon5

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

1586 次点击
所在节点    问与答
3 条回复
yswape
2019-05-10 11:59:11 +08:00
格式: {% post_link 文件名 链接文字 %}, 链接文字可省略

如: hello.md
```
{% post_link hello %}
```
```
{% post_link hello 这是指向 hello 的链接 %}
```
maroon5
2019-05-10 13:47:24 +08:00
@yswape [前言]\({% post_link README.md %}) 这样?试了下不行
whitev2
2019-05-10 13:53:24 +08:00
你要的是不是这个东西? https://github.com/zhenyong/hexo-filter-file-link

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/562751

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX