无法将图像链接到 tumblr 上的永久链接页面



我想将索引页面上的图像链接到它们的永久链接页面,但标签似乎不起作用。这并不是说图像没有链接到正确的位置,它们根本没有被渲染为链接。

这是代码:

{block:Photo}
<article id="{PostID}" class="post photo">
**<img src="{PhotoURL-HighRes}" href="{Permalink}" alt="{PhotoAlt}"/>**
{block:IndexPage}
<div style="{block:ifShowPhotoCaption} display: none; {/block:ifShowPhotoCaption}"  class="control">
<a href="{Permalink}" title="Permalink Page" class="notes">{NoteCountWithLabel}</a>

这应该将索引页面上的图像链接到其永久链接页面,但它根本不会像第二块代码中的"音符计数"标签那样创建链接。

我试过:

<img src="{PhotoURL-HighRes}"><a href="{Permalink}" alt="{PhotoAlt}"/>

而不是我发布的代码,但它没有什么区别。我还尝试过将{block:IndexPage}移到{blocks:Photo}标记之前,但这不起作用,而且当我通过"notes count"链接查看永久链接页面时,还会弄乱它。

我的tumblr:http://ginnypig.tumblr.com/

提前谢谢。

修复它。

代码需要是:

<a href="{Permalink}"><img src="{PhotoURL-HighRes}" alt="{PhotoAlt}"/></a>

与我使用的相反:

<img src="{PhotoURL-HighRes}" href="{Permalink}" alt="{PhotoAlt}"/>

最新更新