From 67959d3b677b8d7d726ace1b3dc02ee2424152c3 Mon Sep 17 00:00:00 2001 From: Wooseop Kim Date: Mon, 20 Jan 2020 22:39:03 +0900 Subject: [PATCH] Fix bug where is rendered as raw HTML code --- layouts/shortcodes/figure.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 8e10b53..d65b533 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,8 +1,8 @@ {{ if .Get "src" }}
{{ . | plainify }} - {{ if .Get "caption" }} + {{- if .Get "caption" -}}
{{ .Get "caption" }}
- {{ end }} + {{- end -}}
{{ end }}