diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2026-02-11 12:55:51 +0100 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2026-02-11 12:55:51 +0100 |
| commit | af2144dadfecc18e368fd5784b203794c1e6d9af (patch) | |
| tree | ef53c307a0295b09e545619c8a3f6fc1eab59b6c /layouts/_markup | |
| parent | ffec2fce6f91b84fda9c33282e26c23d1b66db44 (diff) | |
feat: changed website layout
Diffstat (limited to 'layouts/_markup')
| -rw-r--r-- | layouts/_markup/render-image.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_markup/render-image.html b/layouts/_markup/render-image.html new file mode 100644 index 0000000..179fe95 --- /dev/null +++ b/layouts/_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 }} |
