summaryrefslogtreecommitdiff
path: root/src/http/tpl/image.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2024-05-18 18:29:19 +0200
committerBrian Picciano <mediocregopher@gmail.com>2024-05-18 18:29:19 +0200
commit0665d0c65974533fbd313f4e0b062b5103057aeb (patch)
tree5287795eed9767bd959a5139b77ef78b4024216d /src/http/tpl/image.html
parentffa26298c95451639a6e01db6692d02d50b3d518 (diff)
Replace all URL rendering within templates by a URLConstructor
Diffstat (limited to 'src/http/tpl/image.html')
-rw-r--r--src/http/tpl/image.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/tpl/image.html b/src/http/tpl/image.html
index c6c19b3..7778625 100644
--- a/src/http/tpl/image.html
+++ b/src/http/tpl/image.html
@@ -1,7 +1,7 @@
<div style="text-align: center;">
- <a href="{{ AssetURL .ID }}" target="_blank">
+ <a href="{{ .RootURL.Asset .ID }}" target="_blank">
<img
- src="{{ AssetURL .ID }}{{ if .Resizable }}?w=800{{ end }}"
+ src="{{ .RootURL.Asset .ID }}{{ if .Resizable }}?w=800{{ end }}"
alt="{{ .Descr }}"
/>
</a>