Skip to content

Commit

Permalink
Mermaid diagram with diagram specific settings: fix 'uncaught TypeError'
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Mar 6, 2024
1 parent f37de8d commit e4d3b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/scripts/mermaid.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
return;
}

var params = {{ .Site.Params.mermaid | jsonify | safeJS }};
var params = {{ with .Site.Params.mermaid }}{{ . | jsonify | safeJS }}{{ else }}{}{{- end }};

// Site params are stored with lowercase keys; lookup correct casing
// from Mermaid default config.
Expand Down

0 comments on commit e4d3b71

Please sign in to comment.