diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3342e38..6320649 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -17,10 +17,10 @@ {{ $featuredImage := .Resources.GetMatch (.Params.featured_image.src | safeURL) }} {{ if $featuredImage }} {{ $featuredImage = $featuredImage.Resize "600x" }} -
- +
+ {{ with .Params.featured_image.caption }} -
{{ . }}
+
{{ . }}
{{ end }}
{{ end }} diff --git a/layouts/shortcodes/fig-img.html b/layouts/shortcodes/fig-img.html index b59bada..805488e 100644 --- a/layouts/shortcodes/fig-img.html +++ b/layouts/shortcodes/fig-img.html @@ -1,4 +1,4 @@ -
+
{{- if .Get "link" -}} {{- end -}} @@ -9,10 +9,11 @@ {{- if or (.Get "alt") (.Get "caption") }} alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}" {{- end -}} + class="figure-img img-fluid rounded" /> {{- if .Get "link" }}{{ end -}} {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} -
+
{{ with (.Get "title") -}}

{{ . }}

{{- end -}}