Jekyll 中使用 Org 模式的内部链接

Internal links in Jekyll using Org mode

我看到这个 question 关于 link 使用 markdown 访问内部内容。如何使用 Org 模式 link 到其他帖子?

我尝试了 markdown 格式,但出现以下错误:

...error:
             Error: Unknown tag 'post'
             Error: Run jekyll build --trace for more information.

您可以在 jekyll post 中使用 {% post_url 1025-08-26-blog-post-name %}(没有尾随 .html.org 在 post 名称上)。

要真正使其成为 link,您需要将其包裹在 html link 中。假设您已经将 org-publish 设置设置为编写 HMTL,这可能有点棘手,因为标准的 org-mode link 语法似乎不能正常用于 jekyll-inserted link秒。相反,您可以使用 org-mode HTML escape:

直接将锚点 html 插入到您的 org 文件中

Blah blah surrounding text @@html:<a href="{% post_url 1025-08-26-blog-post-name %}">@@Text describing link to my other post@@html:</a>@@ more surrounding text