✨ Use store method impl the music etc shortcode.
This commit is contained in:
13
layouts/partials/head/style/plugins.html
Normal file
13
layouts/partials/head/style/plugins.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{/* Defind loading plugin entend style which only need in pages */}}
|
||||
{{ if .IsPage }}
|
||||
|
||||
{{/** Short code params **/}}
|
||||
{{ $scParam := .Store.Get "scParams" }}
|
||||
|
||||
{{ if $scParam.mermaid }}
|
||||
.post-block .post-body .mermaid {
|
||||
background: var(--highlight-foreground);
|
||||
}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user