initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{{- $alerttype := .AlertType }}
|
||||
{{- $alerttitle := "" }}
|
||||
{{- $alertsign := "" }}
|
||||
{{- $hugoVersion := "0.134.0" }}
|
||||
{{- if ge hugo.Version $hugoVersion }}
|
||||
{{- $alerttitle = .AlertTitle }}
|
||||
{{- $alertsign = .AlertSign }}
|
||||
{{- end }}
|
||||
{{- $text := .Text }}
|
||||
{{- if $alerttype }}
|
||||
{{- partial "shortcodes/notice.html" (dict
|
||||
"page" .Page
|
||||
"content" $text
|
||||
"expanded" (cond (eq $alertsign "+") true (cond (eq $alertsign "-") false ""))
|
||||
"style" $alerttype
|
||||
"title" $alerttitle
|
||||
) }}
|
||||
{{ else -}}
|
||||
<blockquote>
|
||||
{{ $text | safeHTML }}</blockquote>
|
||||
{{ end }}
|
||||
@@ -0,0 +1,6 @@
|
||||
{{- partial "shortcodes/math.html" (dict
|
||||
"page" .Page
|
||||
"attributes" .Attributes
|
||||
"content" .Inner
|
||||
"align" (index .Attributes "align")
|
||||
) }}
|
||||
@@ -0,0 +1,6 @@
|
||||
{{- partial "shortcodes/mermaid.html" (dict
|
||||
"page" .Page
|
||||
"attributes" .Attributes
|
||||
"content" .Inner
|
||||
"align" (index .Attributes "align")
|
||||
) }}
|
||||
@@ -0,0 +1,7 @@
|
||||
{{- partial "shortcodes/highlight.html" (dict
|
||||
"page" .Page
|
||||
"attributes" .Attributes
|
||||
"content" .Inner
|
||||
"options" .Options
|
||||
"type" .Type
|
||||
) }}
|
||||
@@ -0,0 +1,9 @@
|
||||
{{- $id := "" }}
|
||||
{{- partial "shortcodes/image.html" (dict
|
||||
"page" .Page
|
||||
"url" .Destination
|
||||
"title" .Title
|
||||
"alt" .Text
|
||||
"id" $id
|
||||
"attributes" .Attributes
|
||||
) }}
|
||||
@@ -0,0 +1,6 @@
|
||||
{{- partial "shortcodes/link.html" (dict
|
||||
"page" .Page
|
||||
"url" .Destination
|
||||
"title" .Title
|
||||
"content" .Text
|
||||
) }}
|
||||
Reference in New Issue
Block a user