This commit is contained in:
parent
3d538121a9
commit
cc0d787328
1 changed files with 17 additions and 1 deletions
|
@ -15,7 +15,23 @@
|
|||
<ul>
|
||||
{{#posts}}
|
||||
<li>
|
||||
<span>DATE</span>
|
||||
<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
|
||||
>
|
||||
<div class="content">
|
||||
<h3><a href="/blog/{{url}}">{{title}}</a></h3>
|
||||
<p>SHORT DESC</p>
|
||||
|
|
Loading…
Reference in a new issue