From 43a8c75474e010ea393356bdfe3614c86485b12e Mon Sep 17 00:00:00 2001 From: Nicolas Martignoni Date: Tue, 14 May 2019 14:24:38 +0200 Subject: [PATCH] Make it work with newer Font Awesome release too - Idea stolen from @MTRNord. Thanks to him. - Backwards compatible with older Font Awesome release. --- layouts/shortcodes/notice.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/notice.html b/layouts/shortcodes/notice.html index 430a75a..1afffdd 100644 --- a/layouts/shortcodes/notice.html +++ b/layouts/shortcodes/notice.html @@ -5,7 +5,7 @@ {{- $block := findRE "(?is)^<(?:address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h(?:1|2|3|4|5|6)|header|hgroup|hr|li|main|nav|noscript|ol|output|p|pre|section|table|tfoot|ul|video)\\b" $raw 1 -}} {{/* Count how many times we've called this shortcode and load the css if it's the first time */}} {{- if not ($.Page.Scratch.Get "noticecount") -}} - + {{- end -}} {{- $.Page.Scratch.Add "noticecount" 1 -}}