From 2b516acac2fac9e90dae540cc9e56586333d7bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 4 Jun 2023 00:18:16 +0200 Subject: [PATCH] shortcodes: revert to old syntax for most shortcodes #547 #555 --- layouts/shortcodes/expand.html | 1 + layouts/shortcodes/notice.html | 1 + 2 files changed, 2 insertions(+) diff --git a/layouts/shortcodes/expand.html b/layouts/shortcodes/expand.html index 332c558184..caa3d9561f 100644 --- a/layouts/shortcodes/expand.html +++ b/layouts/shortcodes/expand.html @@ -1,3 +1,4 @@ +{{- $_hugo_config := `{ "version": 1 }` }} {{- $version := split hugo.Version "." }} {{- $major := int (index $version 0) }} {{- $minor := int (index $version 1) }} diff --git a/layouts/shortcodes/notice.html b/layouts/shortcodes/notice.html index fe41a5de40..e65d9be16f 100644 --- a/layouts/shortcodes/notice.html +++ b/layouts/shortcodes/notice.html @@ -1,3 +1,4 @@ +{{- $_hugo_config := `{ "version": 1 }` }} {{- partial "shortcodes/notice.html" (dict "context" .Page "color" (.Get "color")