Sha256: 3a9aad5750f489bcb7ef5be6099e2009b39ccc67917fd763bbbeae66ded2228f
Contents?: true
Size: 733 Bytes
Versions: 13
Compression:
Stored size: 733 Bytes
Contents
<!-- Include mermaid-js scripts. --> {% if page.mermaid or site.mermaid or layout.mermaid %} <script> var MERMAID_CONFIG = window.MERMAID_CONFIG ?? {{ site.mermaid_config | jsonify }} ?? { }; // Load defaults MERMAID_CONFIG.startOnLoad ??= true; MERMAID_CONFIG.htmlLabels ??= true; </script> <script defer src="{{ "assets/plugin/mermaid/mermaid.js" | relative_url }}" {% comment %} Here, we're also calling "mermaid.init()" because of the defer attribute — it's possible that the window has already loaded (and thus startOnLoad may have no effect). {% endcomment %} onload="mermaid.initialize(MERMAID_CONFIG); mermaid.init();" > </script> {% endif %}
Version data entries
13 entries across 13 versions & 1 rubygems