2023-06-21 23:22:08 +00:00
|
|
|
{{- $content := "" }}
|
2023-11-26 20:19:24 +00:00
|
|
|
{{- $content = .InnerDeindent }}
|
2023-06-21 23:22:08 +00:00
|
|
|
{{- $attributes := dict }}
|
|
|
|
{{- $options := dict }}
|
|
|
|
{{- $type := "" }}
|
|
|
|
{{- range $k, $v := .Params }}
|
|
|
|
{{- if eq $k 0 }}
|
|
|
|
{{- $type = $v }}
|
|
|
|
{{- else if eq $k 1 }}
|
2023-06-22 15:34:04 +00:00
|
|
|
{{- $options = $v }}
|
2023-06-21 23:22:08 +00:00
|
|
|
{{- else if eq $k "type" }}
|
|
|
|
{{- $type = $v }}
|
2023-08-12 22:58:41 +00:00
|
|
|
{{- else if eq $k "title" }}
|
|
|
|
{{- $attributes = $attributes | merge (dict $k $v) }}
|
2023-06-21 23:22:08 +00:00
|
|
|
{{- else if eq $k "wrap" }}
|
|
|
|
{{- $attributes = $attributes | merge (dict $k $v) }}
|
|
|
|
{{- else }}
|
2023-06-22 15:34:04 +00:00
|
|
|
{{- $options = $options | merge (dict $k $v) }}
|
2023-06-21 23:22:08 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- partial "shortcodes/highlight.html" (dict
|
2023-07-27 14:14:55 +00:00
|
|
|
"page" .Page
|
2023-06-21 23:22:08 +00:00
|
|
|
"attributes" $attributes
|
|
|
|
"content" $content
|
|
|
|
"options" $options
|
|
|
|
"type" $type
|
|
|
|
) }}
|