fix: mermaid script was skipped on home page (#637)

This commit is contained in:
Xin
2025-03-27 22:40:24 +00:00
committed by GitHub
parent 17de708c9f
commit 38c8ee1168
2 changed files with 2 additions and 3 deletions

View File

@ -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 -}}