From f7789d85b49b45965daed2936447253347c4291c Mon Sep 17 00:00:00 2001 From: Nicolas Martignoni Date: Mon, 15 Apr 2019 15:42:04 +0200 Subject: [PATCH] Fix to support Hugo 0.55.0 and later --- README.md | 8 ++++---- layouts/shortcodes/notice.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d59fe2f..ac32c85 100644 --- a/README.md +++ b/README.md @@ -23,15 +23,15 @@ This components comes with english, french and german localizations for the noti ``` 3. In your site, use the shortcode, this way: ```go - {{% notice warning %}} + {{< notice warning >}} This is a warning notice. Be warned! - {{% /notice %}} + {{< /notice >}} ``` or ```go - {{% notice tip %}} + {{< notice tip >}} This is a very good tip. - {{% /notice %}} + {{< /notice >}} ``` ### Credits diff --git a/layouts/shortcodes/notice.html b/layouts/shortcodes/notice.html index be729aa..4b06a61 100644 --- a/layouts/shortcodes/notice.html +++ b/layouts/shortcodes/notice.html @@ -7,5 +7,5 @@ {{- $.Page.Scratch.Add "noticecount" 1 -}}

{{- i18n $noticeType -}}

-{{- .Inner -}} +{{- .Inner | markdownify -}}