From ea59244858e2b2f60e583cfecdb1e2c60154f1e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 3 Jun 2023 22:58:23 +0200 Subject: [PATCH] footnotes: revert to old syntax for most shortcodes #547 #555 only keep new syntax for shortcodes in case its content may contain footnotes, meaning block level Markdown --- layouts/shortcodes/attachments.html | 1 + layouts/shortcodes/badge.html | 1 + layouts/shortcodes/button.html | 1 + layouts/shortcodes/children.html | 1 + layouts/shortcodes/icon.html | 1 + layouts/shortcodes/math.html | 1 + layouts/shortcodes/mermaid.html | 1 + 7 files changed, 7 insertions(+) diff --git a/layouts/shortcodes/attachments.html b/layouts/shortcodes/attachments.html index 9f370d72bd..34a7ee7157 100644 --- a/layouts/shortcodes/attachments.html +++ b/layouts/shortcodes/attachments.html @@ -1,3 +1,4 @@ +{{- $_hugo_config := `{ "version": 1 }` }} {{- partial "shortcodes/attachments.html" (dict "context" .Page "color" (.Get "color") diff --git a/layouts/shortcodes/badge.html b/layouts/shortcodes/badge.html index 7136cf84c5..b3c4163c03 100644 --- a/layouts/shortcodes/badge.html +++ b/layouts/shortcodes/badge.html @@ -1,3 +1,4 @@ +{{- $_hugo_config := `{ "version": 1 }` }} {{- partial "shortcodes/badge.html" (dict "context" .Page "color" (.Get "color") diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html index 22ccaeb2fa..1e9941d1ab 100644 --- a/layouts/shortcodes/button.html +++ b/layouts/shortcodes/button.html @@ -1,3 +1,4 @@ +{{- $_hugo_config := `{ "version": 1 }` }} {{- partial "shortcodes/button.html" (dict "context" .Page "color" (.Get "color") diff --git a/layouts/shortcodes/children.html b/layouts/shortcodes/children.html index 01f2037dba..d000514859 100644 --- a/layouts/shortcodes/children.html +++ b/layouts/shortcodes/children.html @@ -1,3 +1,4 @@ +{{- $_hugo_config := `{ "version": 1 }` }} {{- partial "shortcodes/children.html" (dict "context" .Page "containerstyle" (.Get "containerstyle") diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html index 55c57c56fc..80e60fd99a 100644 --- a/layouts/shortcodes/icon.html +++ b/layouts/shortcodes/icon.html @@ -1,3 +1,4 @@ +{{- $_hugo_config := `{ "version": 1 }` }} {{- partial "shortcodes/icon.html" (dict "context" .Page "icon" (.Get "icon" | default (.Get 0)) diff --git a/layouts/shortcodes/math.html b/layouts/shortcodes/math.html index 1fe4af9fbc..1e037bac43 100644 --- a/layouts/shortcodes/math.html +++ b/layouts/shortcodes/math.html @@ -1,3 +1,4 @@ +{{- $_hugo_config := `{ "version": 1 }` }} {{- partial "shortcodes/math.html" (dict "context" .Page "content" .Inner diff --git a/layouts/shortcodes/mermaid.html b/layouts/shortcodes/mermaid.html index 4d22258db0..1ff05523e3 100644 --- a/layouts/shortcodes/mermaid.html +++ b/layouts/shortcodes/mermaid.html @@ -1,3 +1,4 @@ +{{- $_hugo_config := `{ "version": 1 }` }} {{- partial "shortcodes/mermaid.html" (dict "context" .Page "content" .Inner