~xdavidwu/xdavidwu.link

237f66e740af4498593bca8116266d9a66c3ad6e — Michael Rose 4 years ago 84556aa
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
M CHANGELOG.md => CHANGELOG.md +1 -0
@@ 2,6 2,7 @@

### Enhancements

- Replace `<section id="custom-comments"></section>` in `comments.html` include and add `custom_scripts.html` include for loading custom comment provider JavaScript in the footer. [#2549](https://github.com/mmistakes/minimal-mistakes/issues/2549)
- Move page date Liquid to include. [#2544](https://github.com/mmistakes/minimal-mistakes/pull/2544)
- Strip trailing whitespace in seo_description. [#2542](https://github.com/mmistakes/minimal-mistakes/pull/2542)
- Improve sticky sidebar's appearance with short content. [#2514](https://github.com/mmistakes/minimal-mistakes/pull/2514)

A _includes/comments-providers/custom_scripts.html => _includes/comments-providers/custom_scripts.html +3 -0
@@ 0,0 1,3 @@
<!-- start custom comments scripts -->

<!-- end custom comments scripts -->
\ No newline at end of file

M _includes/comments-providers/scripts.html => _includes/comments-providers/scripts.html +1 -1
@@ 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 %}
\ No newline at end of file

M _includes/comments.html => _includes/comments.html +1 -1
@@ 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>