Fancier hr, goatcounter analytics, simplify bg-color variable, add default value for the locale setting

This commit is contained in:
David Lapshin
2024-05-16 17:20:34 +03:00
parent bcabba7a64
commit a108cc7501
6 changed files with 35 additions and 14 deletions

View File

@ -185,7 +185,7 @@
permalink.setAttribute("rel", "external nofollow");
permalink.textContent = new Date(
status.created_at
).toLocaleString("{{ config.extra.comments.locale }}", {
).toLocaleString("{{ config.extra.comments.locale | default(value='en-IE') }}", {
dateStyle: "long",
timeStyle: "short",
});

View File

@ -37,6 +37,11 @@
<script src="{{ get_url(path='copy-button.js') }}"></script>
{% endif %}
{% if config.extra.goatcounter %}
<script data-goatcounter="https://{{ config.extra.goatcounter.user }}.{{ config.extra.goatcounter.host | default(value='goatcounter.com') }}/count" async src="//gc.zgo.at/count.js"></script>
<noscript><img src="https://{{ config.extra.goatcounter.user }}.{{ config.extra.goatcounter.host | default(value='goatcounter.com') }}/count?p={{ current_path | default(value='/') | safe }}"></noscript>
{% endif %}
{% if config.extra.comments %}
<link rel="me" href="https://{{ config.extra.comments.host }}/@{{ config.extra.comments.user }}" />
{% endif %}