diff --git a/layouts/_partials/figure.html b/layouts/_partials/figure.html index 20a2405..b4c5470 100644 --- a/layouts/_partials/figure.html +++ b/layouts/_partials/figure.html @@ -7,18 +7,17 @@ {{ end }} {{ with index . "src" }} - {{ $media := . }} {{ if eq .MediaType.MainType "image" }} - {{ $media.Title }} + {{ .Title }} {{ else if eq .MediaType.MainType "video" }} {{ end }} {{ if not $hidecaption }} - {{ with $media.Title }} + {{ with .Title }}
{{ . | markdownify }}