summaryrefslogtreecommitdiff
path: root/srv/src/http/tpl
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-20 14:30:09 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-20 14:30:26 -0600
commitaf434077ef3a971494fb0bc69ec9617c3b365abd (patch)
tree2a7c47c9450c2a6b5ac5bcae5c17b33f9a326db9 /srv/src/http/tpl
parent16cfbd19157df76e7296dddb287412f1099feb33 (diff)
Implement image macro for rendering images
Diffstat (limited to 'srv/src/http/tpl')
-rw-r--r--srv/src/http/tpl/image.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/srv/src/http/tpl/image.html b/srv/src/http/tpl/image.html
new file mode 100644
index 0000000..ba9b75d
--- /dev/null
+++ b/srv/src/http/tpl/image.html
@@ -0,0 +1,5 @@
+<div style="text-align: center;">
+ <a href="{{ AssetURL .ID }}" target="_blank">
+ <img src="{{ AssetURL .ID }}{{ if .Resizable }}?w=800{{ end }}" />
+ </a>
+</div>