This commit is contained in:
mitch committed 2023-05-14 16:02:52 -05:00
commit b79f3a518d
256 files changed
+9156

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
{{ $imagename := (.Get 0) }}
{{ $options := .Get 1 }}
{{ with .Site.GetPage "section" "media" }}
{{ $original := .Resources.GetByPrefix $imagename }}
{{ with ($original.Resize $options) }}
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}">
{{ end }}
{{ end }}