mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-01 01:24:04 +08:00
only keep new syntax for shortcodes in case its content may contain footnotes, meaning block level Markdown
This commit is contained in:
parent
61f05936b1
commit
ea59244858
@ -1,3 +1,4 @@
|
|||||||
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||||
{{- partial "shortcodes/attachments.html" (dict
|
{{- partial "shortcodes/attachments.html" (dict
|
||||||
"context" .Page
|
"context" .Page
|
||||||
"color" (.Get "color")
|
"color" (.Get "color")
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||||
{{- partial "shortcodes/badge.html" (dict
|
{{- partial "shortcodes/badge.html" (dict
|
||||||
"context" .Page
|
"context" .Page
|
||||||
"color" (.Get "color")
|
"color" (.Get "color")
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||||
{{- partial "shortcodes/button.html" (dict
|
{{- partial "shortcodes/button.html" (dict
|
||||||
"context" .Page
|
"context" .Page
|
||||||
"color" (.Get "color")
|
"color" (.Get "color")
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||||
{{- partial "shortcodes/children.html" (dict
|
{{- partial "shortcodes/children.html" (dict
|
||||||
"context" .Page
|
"context" .Page
|
||||||
"containerstyle" (.Get "containerstyle")
|
"containerstyle" (.Get "containerstyle")
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||||
{{- partial "shortcodes/icon.html" (dict
|
{{- partial "shortcodes/icon.html" (dict
|
||||||
"context" .Page
|
"context" .Page
|
||||||
"icon" (.Get "icon" | default (.Get 0))
|
"icon" (.Get "icon" | default (.Get 0))
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||||
{{- partial "shortcodes/math.html" (dict
|
{{- partial "shortcodes/math.html" (dict
|
||||||
"context" .Page
|
"context" .Page
|
||||||
"content" .Inner
|
"content" .Inner
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{{- $_hugo_config := `{ "version": 1 }` }}
|
||||||
{{- partial "shortcodes/mermaid.html" (dict
|
{{- partial "shortcodes/mermaid.html" (dict
|
||||||
"context" .Page
|
"context" .Page
|
||||||
"content" .Inner
|
"content" .Inner
|
||||||
|
Loading…
x
Reference in New Issue
Block a user