diff --git a/assets/sass/_zen.scss b/assets/sass/_zen.scss index 8f2d672..bd87493 100644 --- a/assets/sass/_zen.scss +++ b/assets/sass/_zen.scss @@ -175,7 +175,6 @@ figure { caption-side: bottom; } - h4, p { margin: 0; } diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 9c2be30..518f81b 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -87,11 +87,11 @@
{{ with $link }}{{ end -}} -{{ . }} +{{ $alt }} {{- if $link }}{{ end }} {{ if or $title $caption $attr -}}
-{{ with $title }}

{{ . }}

{{ end -}} +{{ with $title }}{{ . }}
{{ end -}} {{- $caption | markdownify }}{{ if and $caption $attr }} {{ end -}} {{ with $attrlink }}{{ end }}{{ $attr | markdownify }}{{ if $attrlink }}{{ end -}}
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index c972159..2cb3fc9 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -82,5 +82,5 @@ {{ end -}} {{ with $link }}{{ end -}} -{{ . }} +{{ $alt }} {{- if $link }}{{ end }} diff --git a/layouts/shortcodes/svg.html b/layouts/shortcodes/svg.html index c2e7f96..5c31cce 100644 --- a/layouts/shortcodes/svg.html +++ b/layouts/shortcodes/svg.html @@ -54,7 +54,7 @@ {{ if $inline -}}
{{ $src | safeHTML }}
{{ else -}} -{{ . }} +{{ $alt }} {{ end -}} {{- if $link }}{{ end }} {{ if $caption -}}