From 66cc254a8710cdaeb6e56bb45aec1e51f696660a Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Tue, 23 Apr 2019 22:12:56 -0400 Subject: Fix feature block rendering (fixes #56) - Render feature blocks as markdown again. - Feature block inner content is contained in a
rather than a

to avoid nested

tags. --- layouts/shortcodes/blocks/feature.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 layouts/shortcodes/blocks/feature.html (limited to 'layouts/shortcodes/blocks/feature.html') diff --git a/layouts/shortcodes/blocks/feature.html b/layouts/shortcodes/blocks/feature.html new file mode 100644 index 000000000..f0b4b37c8 --- /dev/null +++ b/layouts/shortcodes/blocks/feature.html @@ -0,0 +1,10 @@ +{{ $icon := .Get "icon" | default "fa-lightbulb" }} +{{ $url_text := .Get "url_text" }} +

+
+ +
+

{{ .Get "title" | markdownify }}

+
{{ .Inner }}
+ {{ with .Get "url" }}

{{ with $url_text }}{{ $url_text }}{{ else }}{{ T "ui_read_more" }}{{ end }} …

{{ end }} +
-- cgit v1.2.3