Remove extra slash in gallery list img src

This commit is contained in:
Danny Berger
2014-12-18 15:46:20 -07:00
parent 9f36c34dd5
commit 80cd22a94a

View File

@@ -7,7 +7,7 @@ layout: default
{% loopdir path:"gallery" match:"*/index.html" sort:"-date" %}
<div style="display:inline-block;height:274px;margin:8px 10px 0 0;text-align:center;width:200px;">
<a href="/{{ item.path|replace:'/index.html','/' }}" style="text-decoration:none;">
<img alt="{{ item.title }}" height="200" src="{{ site.asset_prefix }}/{{ item.path|replace:'/index.html','/' }}/{{ item.highlight_photo }}~200x200.jpg" title="{{ item.title }}" width="200" style="border-radius:4px;" />
<img alt="{{ item.title }}" height="200" src="{{ site.asset_prefix }}/{{ item.path|replace:'/index.html','' }}/{{ item.highlight_photo }}~200x200.jpg" title="{{ item.title }}" width="200" style="border-radius:4px;" />
<span style="text-decoration:underline;">{{ item.title }}</span>
{% if item.date %}<br />
<small>