Skip to content

Commit

Permalink
footnotes: revert to old syntax for most shortcodes #547 #555
Browse files Browse the repository at this point in the history
only keep new syntax for shortcodes in case its content may contain footnotes,
meaning block level Markdown
  • Loading branch information
McShelby committed Jun 3, 2023
1 parent 61f0593 commit ea59244
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions layouts/shortcodes/attachments.html
@@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/attachments.html" (dict
"context" .Page
"color" (.Get "color")
Expand Down
1 change: 1 addition & 0 deletions layouts/shortcodes/badge.html
@@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/badge.html" (dict
"context" .Page
"color" (.Get "color")
Expand Down
1 change: 1 addition & 0 deletions layouts/shortcodes/button.html
@@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/button.html" (dict
"context" .Page
"color" (.Get "color")
Expand Down
1 change: 1 addition & 0 deletions layouts/shortcodes/children.html
@@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/children.html" (dict
"context" .Page
"containerstyle" (.Get "containerstyle")
Expand Down
1 change: 1 addition & 0 deletions 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))
Expand Down
1 change: 1 addition & 0 deletions layouts/shortcodes/math.html
@@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/math.html" (dict
"context" .Page
"content" .Inner
Expand Down
1 change: 1 addition & 0 deletions layouts/shortcodes/mermaid.html
@@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/mermaid.html" (dict
"context" .Page
"content" .Inner
Expand Down

0 comments on commit ea59244

Please sign in to comment.