diff --git a/web/layouts/shortcodes/figure.html b/web/layouts/shortcodes/figure.html index 819c773e161..738612098f9 100644 --- a/web/layouts/shortcodes/figure.html +++ b/web/layouts/shortcodes/figure.html @@ -1,8 +1,13 @@ +{{ $src := .Get "src" }} +{{ with .Page.Resources.GetMatch $src }} + {{ $src = .Permalink }} +{{ end }} + {{- if .Get "link" -}} {{- end -}} -