Skip to content

Commit

Permalink
🚸 feat: add JavaScript notice for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Jul 26, 2023
1 parent a201c05 commit 09e5bc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/macros/add_comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
<button id="load-comments" class="load-comments-button" data-script-src="{{ get_url(path='js/' ~ comment_system ~ '.min.js', trailing_slash=false) | safe }}">{%- if lang != config.default_language %} {{ trans(key="load_comments" | safe, lang=lang) }}{% else %} Load comments {%- endif -%}</button>
<script src="{{ get_url(path='js/loadComments.min.js', trailing_slash=false) | safe }}" async></script>
{% endif %}

<noscript>You need JavaScript to view the comments.</noscript>
</div>

{%- endmacro add_comments -%}

0 comments on commit 09e5bc1

Please sign in to comment.