Skip to content

Commit

Permalink
fix: load mermaid script consistently #54
Browse files Browse the repository at this point in the history
Signed-off-by: weru <[email protected]>
  • Loading branch information
onweru committed Jun 2, 2021
1 parent 8193501 commit 8e0734a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/scripts/other.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

{{ if in .Plain "mermaid" }}
{{ if in .Content "mermaid" }}
<script defer src={{ absURL "js/mermaid.min.js" }}></script>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
Expand Down

0 comments on commit 8e0734a

Please sign in to comment.