使用Pelican在页面/文章上显示内部链接URL

时间:2016-07-20 17:56:22

标签: pelican

与Pelican建立链接的常用语法是:

This is [a link]({filename}/foo.md)

这很好用。

但我在一个页面上,我想实际显示链接的网址。也就是说,我希望生成的HTML如下所示:

<p>Here is the link:</p>

<a href="https://example.com/foo.html">https://example.com/foo.html</a>

我尝试写明显的:

[{filename}/foo.md]({filename}/foo.md)

但是它被渲染为:

<a href="https://example.com/foo.html">{filename}/foo.md</a>

我在文档中找不到任何内容,有没有办法做到这一点?

1 个答案:

答案 0 :(得分:0)

我不认为有问题的功能是按照这种方式设计的。如果是我,我会使用:

[https://example.com/foo.html]({filename}/foo.md)
相关问题