Add hour, minute and seconds to content dates

This commit is contained in:
jultty 2024-12-07 11:16:25 -03:00
commit c12feff7c6
8 changed files with 11 additions and 11 deletions

View file

@ -3,7 +3,7 @@
{% block content %}
<article class="blog-post">
<h1 id="post-title">{{ page.title }}</h1>
<time class="post-date">{{ page.date -}}</time>
<time class="post-date">{{ page.date | date(format="%Y-%m-%d %H:%M:%S") -}}</time>
{{ page.content | safe }}
</article>
{%- endblock content -%}

View file

@ -32,7 +32,7 @@
<ul id="posts">
{% for post in posts.pages %}
<li>
<span class="post-date">{{ post.date }}</span>
<span class="post-date">{{ post.date | date(format="%Y-%m-%d") }}</span>
<a href="{{ post.permalink | safe }}">{{ post.title }}</a>
</li>
{% if loop.index == 5 %}{% break %}{% endif %}
@ -55,7 +55,7 @@
<ul id="posts">
{% for note in notes.pages %}
<li>
<span class="post-date">{{ note.date }}</span>
<span class="post-date">{{ note.date | date(format="%Y-%m-%d") }}</span>
<a href="{{ note.permalink | safe }}">{{ note.title }}</a>
</li>
{% if loop.index == 5 %}{% break %}{% endif %}
@ -78,7 +78,7 @@
<ul id="posts">
{% for link in links.pages %}
<li>
<span class="post-date">{{ link.date }}</span>
<span class="post-date">{{ link.date | date(format="%Y-%m-%d") }}</span>
<a href="{{ link.extra.url | safe }}">{{ link.title }}</a>
</li>
{% if loop.index == 5 %}{% break %}{% endif %}

View file

@ -2,7 +2,7 @@
{%- block content %}
<h1 id="post-title"><a href="{{ page.extra.url }}">{{ page.title }}</a></h1>
<time class="link-date"><strong>{% if lang == "pt" %}Linkado{% else %}Linked{% endif %} {{ page.date }}</strong></time>
<time class="link-date"><strong>{% if lang == "pt" %}Linkado{% else %}Linked{% endif %} {{ page.date | date(format="%Y-%m-%d %H:%M:%S") }}</strong></time>
{%- if page.extra.comment %}<p>{{ page.extra.comment }}</p>{% endif %}
{{- page.content | safe }}

View file

@ -14,9 +14,9 @@
{%- else -%}
{{ page.permalink -}}
{%- endif -%}
">{{ page.date -}}</a></time>
">{{ page.date | date(format="%Y-%m-%d") -}}</a></time>
{%- else %}
<time class="post-date">{{ page.date }}</time>
<time class="post-date">{{ page.date | date(format="%Y-%m-%d") }}</time>
{%- endif %}
<a href="{{ page.extra.url | safe }}">{{ page.title }}</a>
</li>

View file

@ -5,7 +5,7 @@
<ul id="posts">
{%- for page in section.pages %}
<li>
<time class="post-date">{{ page.date }}</time>
<time class="post-date">{{ page.date | date(format="%Y-%m-%d") }}</time>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</li>
{%- endfor %}

View file

@ -5,7 +5,7 @@
<ul id="posts">
{%- for page in section.pages %}
<li>
<time class="post-date">{{ page.date }}</time>
<time class="post-date">{{ page.date | date(format="%Y-%m-%d") }}</time>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</li>
{%- endfor %}