diff options
Diffstat (limited to 'layouts/_default/_markup/render-image.html')
| -rw-r--r-- | layouts/_default/_markup/render-image.html | 6 |
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 }} |
