mirror of
https://github.com/imfing/hextra.git
synced 2025-06-20 05:21:31 -04:00
fix: mermaid script was skipped on home page (#637)
This commit is contained in:
@ -5,8 +5,7 @@
|
||||
{{- partial "scripts/search.html" . -}}
|
||||
|
||||
{{/* Mermaid */}}
|
||||
{{/* FIXME: need to investigate .Page.Store hasMermaid is set for homepage */}}
|
||||
{{- if and (.Page.Store.Get "hasMermaid") (not .Page.IsHome) -}}
|
||||
{{- if (.Store.Get "hasMermaid") -}}
|
||||
{{- partial "scripts/mermaid.html" . -}}
|
||||
{{- end -}}
|
||||
|
||||
|
Reference in New Issue
Block a user