summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-02-08 19:19:53 +0100
committermjkwiatkowski <mati.rewa@gmail.com>2026-02-08 19:19:53 +0100
commitc0583006c60a11e3afdad65c4d02fb35bd23be41 (patch)
tree9fcfacd3099e6c69b7d0c31f18232f219aad055c /layouts
parentc3bad296ca775ae19d6aff962dd093735073348f (diff)
feat: added a new post about the HP poster fair
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-image.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
new file mode 100644
index 0000000..179fe95
--- /dev/null
+++ b/layouts/_default/_markup/render-image.html
@@ -0,0 +1,6 @@
+{{ $image := resources.GetMatch (printf "%s" (.Destination | safeURL)) }}
+{{ with $image }}
+{{ with .Resize "400x" }}
+ <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}">
+ {{ end }}
+{{ end }}