mylloon.fr/templates/blog/date.html
Mylloon 2bec742bb2
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
add post title and date
2023-04-25 03:29:55 +02:00

17 lines
369 B
HTML

<span>
{{#date}}
<script>
{
const date = new Date(+"{{year}}", +"{{month}}", +"{{day}}");
document.currentScript.outerHTML = date.toLocaleDateString(
navigator.language || navigator.userLanguage,
{
year: "numeric",
month: "long",
day: "numeric",
}
);
}
</script>
{{/date}}
</span>