Alter photo gallery with direct linking to slideshow
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
<a href="/{{ site.baseurl }}/gallery/{{ include.gallery }}/">[ gallery ]</a><br />
|
||||
{% endunless %}
|
||||
{% for photo in photos %}
|
||||
<a href="/{{ site.baseurl }}/{{ photo.url }}" style="display: inline-block; margin: 3px; text-decoration: none;"><img alt="Photo: {{ photo.title }}" height="96" src="{{ site.asset_prefix }}/gallery/{{ include.gallery }}/{{ photo.name | remove:'.md' }}~96x96.jpg" title="{{ photo.title }}" width="96" style="padding: 1px;" /></a>
|
||||
{% if false != gallery.slideshow %}
|
||||
{% capture url %}{{ include.gallery }}/slideshow.html#{{ photo.name }}{% endcapture %}
|
||||
{% else %}
|
||||
{% capture url %}{{ photo.url }}{% endcapture %}
|
||||
{% endif %}
|
||||
<a href="/{{ site.baseurl }}/gallery/{{ url }}" style="display: inline-block; margin: 3px; text-decoration: none;"><img alt="Photo: {{ photo.title }}" height="96" src="{{ site.asset_prefix }}/gallery/{{ include.gallery }}/{{ photo.name | remove:'.md' }}~96x96.jpg" title="{{ photo.title }}" width="96" style="padding: 1px;" /></a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user