2022-10-27 15:57:42 +08:00
|
|
|
{{/* Defind loading plugin scripts which only need in pages */}}
|
2025-01-15 21:42:22 +08:00
|
|
|
{{ if .IsPage }}
|
2022-09-11 11:14:54 +08:00
|
|
|
|
2025-01-20 09:28:56 +08:00
|
|
|
{{/** Append codeblack render action **/}}
|
|
|
|
{{ if .Store.Get "codeblock" }}
|
|
|
|
{{ partial "_funs/get_plugin.html" (dict "ctx" . "class" "others" "plugin" "clipboard.js") }}
|
|
|
|
{{ end }}
|
|
|
|
|
2025-01-15 21:42:22 +08:00
|
|
|
{{/** Short code params **/}}
|
|
|
|
{{ $scParam := .Store.Get "scParams" }}
|
|
|
|
|
|
|
|
{{/** Append math render action **/}}
|
2022-10-27 15:57:42 +08:00
|
|
|
{{ if or .Params.math .Site.Params.math }}
|
|
|
|
{{ partial "_funs/get_plugin.html" (dict "ctx" . "class" "others" "plugin" "math.js") }}
|
2022-09-11 11:14:54 +08:00
|
|
|
{{ end }}
|
|
|
|
|
2025-01-15 21:42:22 +08:00
|
|
|
{{/** Append mermaid render action **/}}
|
|
|
|
{{ if $scParam.mermaid }}
|
2022-10-27 15:57:42 +08:00
|
|
|
{{ partial "_funs/get_plugin.html" (dict "ctx" . "class" "others" "plugin" "mermaid.js") }}
|
2025-01-15 21:42:22 +08:00
|
|
|
{{ end }}
|
|
|
|
|
2022-10-27 15:57:42 +08:00
|
|
|
{{ end }}
|