Replace custom comment hardcoded HTML with include

Also add custom_scripts.html include for custom comment provider JavaScript that loads in the footer.

Close #2549
This commit is contained in:
Michael Rose
2020-06-02 22:33:08 -04:00
parent 59e007b20e
commit 3ab6ba0b1f
5 changed files with 8 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
<!-- start custom comments scripts -->
<!-- end custom comments scripts -->

View File

@@ -13,6 +13,6 @@
{% when "utterances" %}
{% include /comments-providers/utterances.html %}
{% when "custom" %}
{% include /comments-providers/custom.html %}
{% include /comments-providers/custom_scripts.html %}
{% endcase %}
{% endif %}

View File

@@ -154,6 +154,6 @@
<h4 class="page__comments-title">{{ comments_label }}</h4>
<section id="utterances-comments"></section>
{% when "custom" %}
<section id="custom-comments"></section>
{% include /comments-providers/custom.html %}
{% endcase %}
</div>