mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
Cache bust webmentions JS + drop unused config
This commit is contained in:
parent
d9be49ac20
commit
0c2e0f36c4
1 changed files with 2 additions and 9 deletions
|
@ -45,14 +45,7 @@
|
||||||
{% set script_data = script_data ~ " data-comments-are-reactions=" ~ config.extra.webmentions.comments_are_reactions %}
|
{% set script_data = script_data ~ " data-comments-are-reactions=" ~ config.extra.webmentions.comments_are_reactions %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script async src="{{ get_url(path='js/webmention.min.js', trailing_slash=false) | safe }}" {{ script_data }}>
|
<script async src="{{ get_url(path='js/webmention.min.js', trailing_slash=false, cachebust=true) | safe }}" {{ script_data }}>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{%- set format = config.extra.webmentions.format | default(value="") -%}
|
<div class="webmentions-container" id="webmentions"></div>
|
||||||
{% if format == "" %}
|
|
||||||
{%- set dash = "" -%}
|
|
||||||
{% else %}
|
|
||||||
{%- set dash = "-" -%}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class="webmentions-container" id="webmentions{{ dash}}{{ format }}"></div>
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue