Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Boothe <git@rootwork.org>2022-04-25 02:07:31 +0300
committerGitHub <noreply@github.com>2022-04-25 02:07:31 +0300
commit3907689dd31547fa2452a7d4d355fe1006f5c811 (patch)
treef1752ed0073834fa54ca67771aea1d797ed105dc /layouts
parent2e321313f63118a0e90c6a6266b89bc9e11d961e (diff)
parent20515b859ff9ea6df60134e947bc39e7621dfe00 (diff)
Merge pull request #283 from rootwork/allow-empty-imagecaps
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/figure.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/figure.html b/layouts/partials/figure.html
index 163af57..3d797e2 100644
--- a/layouts/partials/figure.html
+++ b/layouts/partials/figure.html
@@ -55,7 +55,7 @@
/>
{{/* Provide caption based on image title, if it is set. */}}
- {{- with $cap -}}
+ {{- if not (eq $cap " ") -}}
<figcaption>{{ $cap | safeHTML }}</figcaption>
{{- end -}}