一个 Jekyll 页面的 link 到对应的 github 页面?

A link of a Jekyll page to its corresponding github page?

如何才能让 Jekyll link 上的页面转到 GitHub 上的对应页面?

例如,如果页面的形式是 www.example.org/restOfUrl,对应的 github 条目是 github.com/example-org/example-project/restOrUrl.md,那么如何将 link 插入到 github 来自网站的页面?

来自doc

page.path

The path to the raw post or page. Example usage: Linking back to the page or post’s source on GitHub. This can be overridden in the YAML Front Matter.

因此您可以在您的 liquid 代码中使用 {{ page.path }} 来获取信息。