From 0698aa85561ddb936f02ea9d869bb64964767294 Mon Sep 17 00:00:00 2001 From: Nedjo Rogers Date: Sat, 16 Apr 2022 21:43:59 -0700 Subject: [PATCH] Remove unrelated markup changes from feature shortcode (#362) --- layouts/shortcodes/figure.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 49eb159..411aad1 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,3 +1,5 @@ +{{- /* See https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/shortcodes/figure.html */ -}} + {{- $srcset := slice -}} {{- /* Matching uses relative paths so strip a leading / character if present. */ -}} {{- $image := partial "func/GetImageResource" (dict "src" (.Get "src") "pageResources" .Page.Resources) -}} @@ -6,8 +8,7 @@ {{- $target_width := 0.70 -}} {{- $srcset = partial "func/GetImageSrcset" (dict "original" . "target_width" $target_width) -}} {{- end -}} -{{- $class := .Get "class" | default "mh0" -}} - + {{- if .Get "link" -}} {{- end -}} @@ -21,11 +22,11 @@ /> {{- if .Get "link" }}{{ end -}} {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} -
+
{{ with (.Get "title") -}}

{{ . }}

{{- end -}} - {{- if or (.Get "caption") (.Get "attr") -}}

+ {{- if or (.Get "caption") (.Get "attr") -}}

{{- .Get "caption" | markdownify -}} {{- with .Get "attrlink" }}