diff --git a/layouts/partials/hugo-embedded/shortcodes/figure-default.html b/layouts/partials/hugo-embedded/shortcodes/figure-default.html index e74d30be..74b12124 100644 --- a/layouts/partials/hugo-embedded/shortcodes/figure-default.html +++ b/layouts/partials/hugo-embedded/shortcodes/figure-default.html @@ -5,7 +5,7 @@ {{- if .Get "link" -}} - + {{- end -}} {{- $u := urls.Parse (.Get "src") -}} diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 0b429187..35f5e331 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -11,7 +11,7 @@ {{- $nozoom := .Get "nozoom" | default false -}}
- {{- with $href }}{{ end -}} + {{- with $href }}{{ end -}} {{- if findRE "^https?" $url.Scheme }} {{ $altText }} {{- else }} @@ -45,7 +45,7 @@ {{ $altText }} {{- end }} {{- end }} - {{ with $caption }}
{{ . | markdownify }}
{{ end }} {{ if $href }}
{{ end }} + {{ with $caption }}
{{ . | markdownify }}
{{ end }}
{{- end -}}