Compare commits
No commits in common. "82de6d61d21cc291bcae47aac2877e008d2dad5b" and "924ca18ec6c2287eb88599ff7a5075af3527fdbf" have entirely different histories.
82de6d61d2
...
924ca18ec6
2 changed files with 1 additions and 29 deletions
|
@ -214,7 +214,7 @@ copyright = "© $CURRENT_YEAR $AUTHOR $SEPARATOR Unless otherwise noted, the con
|
|||
allowed_domains = [
|
||||
{ directive = "font-src", domains = ["'self'", "data:"] },
|
||||
{ directive = "img-src", domains = ["'self'", "https://*", "data:"] },
|
||||
{ directive = "script-src", domains = ["'self'", "https://comments.softinio.com/js/embed.min.js", "https://static.cloudflareinsights.com"] },
|
||||
{ directive = "script-src", domains = ["'self'", "https://comments.softinio.com/js/embed.min.js", "https://static.cloudflareinsights.com", "https://a.softinio.net"] },
|
||||
{ directive = "style-src", domains = ["'self'"] },
|
||||
{ directive = "frame-src", domains = ["player.vimeo.com", "https://www.youtube-nocookie.com", "https://watch.softinio.com", "https://notes.softinio.com/embed"] },
|
||||
]
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
{% set analytics_service = config.extra.analytics.service %}
|
||||
{% set analytics_id = config.extra.analytics.id | default(value="") %}
|
||||
{% set self_hosted_url = config.extra.analytics.self_hosted_url | default(value="") %}
|
||||
|
||||
{% if analytics_service == "goatcounter" %}
|
||||
{# Prevent non-demo sites from using the demo analytics account #}
|
||||
{% if self_hosted_url == "https://tabi-stats.osc.garden" and config.base_url == "https://welpo.github.io/tabi" or
|
||||
self_hosted_url != "https://tabi-stats.osc.garden" %}
|
||||
<script async {% if self_hosted_url %} data-goatcounter="{{ self_hosted_url ~ '/count' }}"
|
||||
src="{{ self_hosted_url ~ '/count.js' }}" {% else %}
|
||||
data-goatcounter="https://{{ analytics_id }}.goatcounter.com/count" src="https://gc.zgo.at/count.js" {% endif
|
||||
%}></script>
|
||||
{% endif %}
|
||||
|
||||
{% elif analytics_service == "umami" %}
|
||||
<script async defer {% if self_hosted_url %} data-website-id="{{ analytics_id }}"
|
||||
src="{{ self_hosted_url ~ '/script.js' }}" {% else %} data-website-id="{{ analytics_id }}"
|
||||
src="https://analytics.eu.umami.is/script.js" {% endif %} data-do-not-track="true">
|
||||
</script>
|
||||
|
||||
{% elif analytics_service == "plausible" %}
|
||||
<script defer data-domain="{{ analytics_id }}"
|
||||
<!--src="{% if self_hosted_url %}{{ self_hosted_url ~ '/js/plausible.js' }}{% else %}https://plausible.io/js/script.js{% endif %}"
|
||||
-->
|
||||
src = "{{ self_hosted_url ~ 'f40-1589-48c0-820b-9643ad0080b2.js' }}"
|
||||
></script>
|
||||
|
||||
{% endif %}
|
Loading…
Reference in a new issue