Add hour, minute and seconds to content dates
This commit is contained in:
parent
be0b4904f8
commit
c12feff7c6
8 changed files with 11 additions and 11 deletions
|
|
@ -1,6 +1,6 @@
|
|||
+++
|
||||
title = "New notes section"
|
||||
date = 2024-11-17
|
||||
date = 2024-11-17T00:00:01-03:00
|
||||
+++
|
||||
|
||||
This blog now has a Notes section for shorter, less elaborate thoughts, meant to allow more free-form updates as opposed to the longer posts which take much more time to write.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
+++
|
||||
title = "On self-hosting being a patch"
|
||||
date = 2024-11-23
|
||||
date = 2024-11-23T15:00:00-03:00
|
||||
+++
|
||||
|
||||
Recently the blog post [Self-Hosting Isn't a Solution; It's A Patch](https://matduggan.com/self-hosting-isnt-a-solution-its-a-patch/) landed in my reading list via [Lobsters](https://lobste.rs/s/eisgx0/self_hosting_isn_t_solution_it_s_patch).
|
||||
|
|
|
|||
|
|
@ -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 -%}
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue