diff --git a/themes/red/layouts/_default/_markup/render-image.html b/themes/red/layouts/_default/_markup/render-image.html new file mode 100644 index 0000000..22f0fa3 --- /dev/null +++ b/themes/red/layouts/_default/_markup/render-image.html @@ -0,0 +1,17 @@ +{{- $url := .Destination | safeURL -}} +{{- $img := .Page.Resources.GetMatch .Destination -}} + +{{- if and (not $img) .Page.File -}} + {{ $path := path.Join .Page.File.Dir .Destination }} + {{- $img = resources.Get $path -}} +{{- end -}} +{{- with $img -}} + +
+ +{{ $.Text }} + +
{{ $.Text }}
+
+ +{{- end -}}