From 0a07eed3028da640b00b6492599799b56bec31ee Mon Sep 17 00:00:00 2001 From: Martin Taillefer Date: Tue, 12 Mar 2019 09:56:52 -0700 Subject: [PATCH] Fix a few bugs in the boilerplate shortcode. (#3652) --- layouts/shortcodes/boilerplate.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/shortcodes/boilerplate.html b/layouts/shortcodes/boilerplate.html index 49bfaf2a9d..548b9f5038 100644 --- a/layouts/shortcodes/boilerplate.html +++ b/layouts/shortcodes/boilerplate.html @@ -1,4 +1,4 @@ -{{/* This will try to find a resource in the "boilerplates" top-level content directory */}} +{{- /* This will try to find a resource in the "boilerplates" top-level content directory */ -}} {{- $name := .Get 0 -}} {{- $position := .Position }} {{- if $name -}} @@ -13,13 +13,13 @@ {{- $path := path.Join $.Page.Dir $name -}} {{- $page := $.Page.Site.GetPage "page" $path -}} {{- with $page }} - {{ .Content }} + {{- .Content | safeHTML -}} {{- else -}} - {{ errorf "Could not find %s (%s)" $pattern $position }} + {{- errorf "Could not find %s (%s)" $pattern $position -}} {{- end -}} {{- end -}} {{- else -}} - {{ errorf "'boilerplates' direcory was not found (%s)" $position }} + {{- errorf "'boilerplates' direcory was not found (%s)" $position -}} {{- end -}} {{- else -}} {{- errorf "Missing name in boilerplate (%s)" $position -}}