✨ add dateString filter
This commit is contained in:
@ -12,6 +12,13 @@
|
||||
<body class="bg-white text-gray-900 dark:bg-gray-900 dark:text-gray-100">
|
||||
<div class="container max-w-2xl mb-24 mt-8 mx-auto">
|
||||
<div class="px-5 md:px-8">
|
||||
<header class="flex flex-row not-prose my-8">
|
||||
<div rel="author" class="p-author h-card basis-1/2">
|
||||
<a href="/">
|
||||
<img class="u-photo w-8 inline-block" src="/images/walkah-avatar.png" > walkah
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
<main id="main" class="prose lg:prose-lg dark:prose-invert">
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
|
@ -24,14 +24,12 @@
|
||||
</section>
|
||||
<footer class="flex flex-row not-prose">
|
||||
<div rel="author" class="p-author h-card basis-1/2">
|
||||
<a href="/">
|
||||
<img class="u-photo w-8 inline-block" src="/images/walkah-avatar.png" > walkah
|
||||
</a>
|
||||
<time class="dt-published" datetime="{{ post.published_at }}" pubdate>
|
||||
<a class="u-url text-gray-500 text-sm" href="{{ post.url }}">{{ post.date | dateString }}</a>
|
||||
</time>
|
||||
</div>
|
||||
<div class="text-right basis-1/2">
|
||||
<time class="dt-published" datetime="{{ post.published_at }}" pubdate>
|
||||
<a class="u-url text-gray-500 text-sm" href="{{ post.url }}">{{ post.date.toLocaleDateString() }}</a>
|
||||
</time>
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
</article>
|
||||
|
Reference in New Issue
Block a user