_includes/node/script.extension.liquid in jekyll-rtd-theme-2.0.6 vs _includes/node/script.extension.liquid in jekyll-rtd-theme-2.0.7
- old
+ new
@@ -1,10 +1,10 @@
{%- comment %} mermaid {% endcomment -%}
{%- if content contains '<code class="language-mermaid">' -%}
{%- if site.mermaid.custom -%}
<script src="{{ site.mermaid.custom }}"></script>
{%- else -%}
- <script src="{{ cdn }}/assets/js/mermaid.min.js"></script>
+ <script src="{{ base }}/assets/js/mermaid.min.js"></script>
{%- endif %}
<script>
mermaid.initialize({% if site.mermaid.initialize %}{{ site.mermaid.initialize | jsonify }}{% else %}{}{% endif %});
</script>
{%- endif %}