1
0
mirror of https://github.com/sjlongland/tornado-gallery.git synced 2025-09-13 08:42:23 +10:00

templates: Use "friendly" image URIs

This commit is contained in:
Stuart Longland 2018-04-18 12:49:05 +10:00
parent d0d6be6659
commit 66b88bed17
Signed by: stuartl
GPG Key ID: 6AA32EFB18079BAA
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ body {
{% set hh = p.thumbheight / 2 %}
{% set xpad = 60 - hw %}
{% set ypad = 60 - hh %}
<a href="{{site_uri}}/{{gallery.name}}/{{p.name}}?{{page_query}}"><img src="{{site_uri}}/{{gallery.name}}/{{p.name}}?width={{p.thumbwidth}}&height={{p.thumbheight}}&show=on"
<a href="{{site_uri}}/{{gallery.name}}/{{p.name}}?{{page_query}}"><img src="{{site_uri}}/{{gallery.name}}/{{p.name}}/thumb.jpg"
align="absmiddle"
width="{{p.thumbwidth}}"
height="{{p.thumbheight}}"

View File

@ -143,7 +143,7 @@ body {
<p align="center"><img id="photoimg"
width="{{width}}"
height="{{height}}"
src="{{site_uri}}/{{gallery.name}}/{{photo.name}}?width={{width}}&height={{height}}&show=on"
src="{{site_uri}}/{{photo.get_rel_uri(**settings)}}"
alt="{{photo.annotation or photo.name}}"
lowsrc="{{site_uri}}/{{gallery.name}}/{{photo.name}}?width={{photo.thumbwidth}}&height={{photo.thumbheight}}&show=on" /></p>