Continue previous commit

This commit is contained in:
daudix
2024-06-20 09:03:46 +03:00
parent 40b1895618
commit 37e0939391
6 changed files with 24 additions and 21 deletions

View File

@ -13,6 +13,7 @@
{% endif %}
{% set id = page.extra.comments.id %}
{% set date_locale = macros_translate::translate(key="date_locale", default="en-GB", language_strings=language_strings) %}
<section id="comments">
{% if config.extra.comments.show_qr %}
@ -185,7 +186,7 @@
permalink.setAttribute("rel", "external nofollow");
permalink.textContent = new Date(
status.created_at
).toLocaleString("{{ config.extra.comments.locale | default(value='en-IE') }}", {
).toLocaleString("{{ date_locale }}", {
dateStyle: "long",
timeStyle: "short",
});