将呈现的Jekyll页面的源显示为页面上的链接
假设我们在将呈现的Jekyll页面的源显示为页面上的链接,jekyll,Jekyll,假设我们在domain.com/rendered post/上有一篇呈现的Jekyll帖子 帖子的来源位于https://github.com/username/username.github.io/blob/master/_posts/2013-12-10-rendered-post-title.md 在呈现源代码页时,是否可以在文章中自动包含指向源代码页的链接 文章中的最终结果应该是我在布局中使用页面变量{{page.path}}找到了解决方案 <a href="https://git
domain.com/rendered post/
上有一篇呈现的Jekyll帖子
帖子的来源位于https://github.com/username/username.github.io/blob/master/_posts/2013-12-10-rendered-post-title.md
在呈现源代码页时,是否可以在文章中自动包含指向源代码页的链接
文章中的最终结果应该是
我在布局中使用页面变量{{page.path}}
找到了解决方案
<a href="https://github.com/username/username.github.io/blob/master/{{ page.path }}">View source code of this page</a>
呈现
<a href='https://github.com/username/username.github.io/blob/master/_posts/2013-12-10-rendered-post-title.md'>View source code of this page</a>