✨ Use store method impl the music etc shortcode.
This commit is contained in:
3
layouts/partials/head/style/global.html
Normal file
3
layouts/partials/head/style/global.html
Normal file
@@ -0,0 +1,3 @@
|
||||
.post-footer, .flinks-list-footer hr:after {
|
||||
content: "{{ .Site.Params.postFooter.endLineTip }}";
|
||||
}
|
||||
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