在Pelican中,如何将图像链接到完整版本? [英] In Pelican, how can I link an image to its fullsize version?
本文介绍了在Pelican中,如何将图像链接到完整版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的Pelican博客文章中,我有这样的内容:
In my Pelican blog article I have something like this:
![Alt Text]({filename}/images/foo.jpg)
这很好,因为它在文章中包含foo.jpg,即它创建了
This works fine as it includes foo.jpg into the article, i.e., it creates
<img src="/images/foo.jpg" alt="Alt Text">
但是,我想使该图像可点击,以便用户可以将图像链接到全尺寸图像的URL,即
However, I'd like to make this image clickable so users can link the image to go to a URL for the full-size image, i.e.
<a href="/images/foo.jpg"><img src="/images/foo.jpg" alt="Alt Text"></a>
如何在Pelican中做到这一点?
How can I do that in Pelican?
谢谢.
推荐答案
也许尝试:
[![Alt Text]({filename}/images/foo.jpg)]({filename}/images/foo.jpg)
...或:
[<img src="{filename}/images/foo.jpg">]({filename}/images/foo.jpg)
相关: https://meta.stackexchange.com/questions/38915/以markdown格式创建图像链接
这篇关于在Pelican中,如何将图像链接到完整版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文