fix(dates): add font-mono text-sm to all <time> elements

System convention: every rendered date gets font-mono class.
CSS base layer handles font-family, but classes ensure consistency
and proper text-sm sizing across all templates.

Confab-Link: http://localhost:8080/sessions/0ec83454-d346-4329-8aaf-6b12139bf596
This commit is contained in:
Ricardo
2026-03-07 15:59:17 +01:00
parent 4945a6f1e6
commit dacf819b99
15 changed files with 41 additions and 41 deletions

View File

@@ -161,7 +161,7 @@
{# Last Updated #} {# Last Updated #}
{% if cv.lastUpdated %} {% if cv.lastUpdated %}
<p class="text-sm text-surface-500 text-center mt-8"> <p class="text-sm text-surface-500 text-center mt-8">
Last updated: <time datetime="{{ cv.lastUpdated }}">{{ cv.lastUpdated | date("PPP") }}</time> Last updated: <time class="font-mono text-sm" datetime="{{ cv.lastUpdated }}">{{ cv.lastUpdated | date("PPP") }}</time>
</p> </p>
{% endif %} {% endif %}

View File

@@ -24,7 +24,7 @@
{% if item.type %} &middot; <span class="capitalize">{{ item.type }}</span>{% endif %} {% if item.type %} &middot; <span class="capitalize">{{ item.type }}</span>{% endif %}
</p> </p>
{% if item.startDate %} {% if item.startDate %}
<p class="text-xs text-surface-500 mt-0.5"> <p class="text-xs text-surface-500 mt-0.5 font-mono">
{{ item.startDate }}{% if item.endDate %} {{ item.endDate }}{% else %} Present{% endif %} {{ item.startDate }}{% if item.endDate %} {{ item.endDate }}{% else %} Present{% endif %}
</p> </p>
{% endif %} {% endif %}

View File

@@ -42,7 +42,7 @@
{% set borderClass = "border-l-[3px] border-l-surface-300 dark:border-l-surface-600" %} {% set borderClass = "border-l-[3px] border-l-surface-300 dark:border-l-surface-600" %}
{% endif %} {% endif %}
<article class="h-entry p-4 bg-surface-50 dark:bg-surface-800 rounded-lg border border-surface-200 dark:border-surface-700 hover:border-surface-400 dark:hover:border-surface-500 transition-colors {{ borderClass }}"> <article class="h-entry p-4 bg-surface-50 dark:bg-surface-800 rounded-lg border border-surface-200 dark:border-surface-700 hover:border-accent-400 dark:hover:border-accent-600 transition-colors {{ borderClass }}">
{% if likedUrl %} {% if likedUrl %}
{# ── Like card ── #} {# ── Like card ── #}
@@ -55,7 +55,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<span class="font-medium text-red-600 dark:text-red-400">Liked</span> <span class="font-medium text-red-600 dark:text-red-400">Liked</span>
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</div> </div>
@@ -83,7 +83,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<span class="font-medium text-amber-600 dark:text-amber-400">Bookmarked</span> <span class="font-medium text-amber-600 dark:text-amber-400">Bookmarked</span>
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</div> </div>
@@ -116,7 +116,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<span class="font-medium text-green-600 dark:text-green-400">Reposted</span> <span class="font-medium text-green-600 dark:text-green-400">Reposted</span>
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</div> </div>
@@ -144,7 +144,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<span class="font-medium text-sky-600 dark:text-sky-400">In reply to</span> <span class="font-medium text-sky-600 dark:text-sky-400">In reply to</span>
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</div> </div>
@@ -173,7 +173,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<span class="font-medium text-purple-600 dark:text-purple-400">Photo</span> <span class="font-medium text-purple-600 dark:text-purple-400">Photo</span>
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</div> </div>
@@ -210,11 +210,11 @@
</p> </p>
{% endif %} {% endif %}
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
{% if post.data.postType %} {% if post.data.postType %}
<span class="px-2 py-0.5 bg-surface-100 dark:bg-surface-700 rounded"> <span class="px-2 py-0.5 bg-surface-100 dark:bg-surface-700 rounded-full">
{{ post.data.postType }} {{ post.data.postType }}
</span> </span>
{% endif %} {% endif %}
@@ -224,12 +224,12 @@
{# ── Note card ── #} {# ── Note card ── #}
<div class="flex items-center gap-3 text-xs text-surface-500 mb-2"> <div class="flex items-center gap-3 text-xs text-surface-500 mb-2">
<a class="u-url" href="{{ post.url }}"> <a class="u-url" href="{{ post.url }}">
<time class="dt-published font-medium text-surface-500 dark:text-surface-400" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-medium font-mono text-surface-500 dark:text-surface-400" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</a> </a>
{% if post.data.postType %} {% if post.data.postType %}
<span class="px-2 py-0.5 bg-surface-100 dark:bg-surface-700 rounded"> <span class="px-2 py-0.5 bg-surface-100 dark:bg-surface-700 rounded-full">
{{ post.data.postType }} {{ post.data.postType }}
</span> </span>
{% endif %} {% endif %}

View File

@@ -52,7 +52,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<span class="font-medium text-red-600 dark:text-red-400">Liked</span> <span class="font-medium text-red-600 dark:text-red-400">Liked</span>
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</div> </div>
@@ -80,7 +80,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<span class="font-medium text-amber-600 dark:text-amber-400">Bookmarked</span> <span class="font-medium text-amber-600 dark:text-amber-400">Bookmarked</span>
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</div> </div>
@@ -113,7 +113,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<span class="font-medium text-green-600 dark:text-green-400">Reposted</span> <span class="font-medium text-green-600 dark:text-green-400">Reposted</span>
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</div> </div>
@@ -141,7 +141,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<span class="font-medium text-sky-600 dark:text-sky-400">In reply to</span> <span class="font-medium text-sky-600 dark:text-sky-400">In reply to</span>
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</div> </div>
@@ -170,7 +170,7 @@
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<span class="font-medium text-purple-600 dark:text-purple-400">Photo</span> <span class="font-medium text-purple-600 dark:text-purple-400">Photo</span>
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</div> </div>
@@ -207,11 +207,11 @@
</p> </p>
{% endif %} {% endif %}
<div class="flex items-center gap-3 text-xs text-surface-500"> <div class="flex items-center gap-3 text-xs text-surface-500">
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
{% if post.data.postType %} {% if post.data.postType %}
<span class="px-2 py-0.5 bg-surface-100 dark:bg-surface-700 rounded"> <span class="px-2 py-0.5 bg-surface-100 dark:bg-surface-700 rounded-full">
{{ post.data.postType }} {{ post.data.postType }}
</span> </span>
{% endif %} {% endif %}
@@ -221,12 +221,12 @@
{# ── Note card ── #} {# ── Note card ── #}
<div class="flex items-center gap-3 text-xs text-surface-500 mb-2"> <div class="flex items-center gap-3 text-xs text-surface-500 mb-2">
<a class="u-url" href="{{ post.url }}"> <a class="u-url" href="{{ post.url }}">
<time class="dt-published font-medium text-surface-500 dark:text-surface-400" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-medium font-mono text-surface-500 dark:text-surface-400" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</a> </a>
{% if post.data.postType %} {% if post.data.postType %}
<span class="px-2 py-0.5 bg-surface-100 dark:bg-surface-700 rounded"> <span class="px-2 py-0.5 bg-surface-100 dark:bg-surface-700 rounded-full">
{{ post.data.postType }} {{ post.data.postType }}
</span> </span>
{% endif %} {% endif %}

View File

@@ -20,7 +20,7 @@
<a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-1"> <a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-1">
Liked {{ _likedUrl | replace("https://", "") | truncate(40) }} Liked {{ _likedUrl | replace("https://", "") | truncate(40) }}
</a> </a>
<time class="text-xs text-surface-500 block" datetime="{{ post.data.published or post.date }}"> <time class="text-xs text-surface-500 block font-mono" datetime="{{ post.data.published or post.date }}">
{{ (post.data.published or post.date) | dateDisplay }} {{ (post.data.published or post.date) | dateDisplay }}
</time> </time>
</div> </div>
@@ -33,7 +33,7 @@
<a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-1"> <a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-1">
{{ post.data.title or ("Bookmarked " + (_bookmarkedUrl | replace("https://", "") | truncate(35))) }} {{ post.data.title or ("Bookmarked " + (_bookmarkedUrl | replace("https://", "") | truncate(35))) }}
</a> </a>
<time class="text-xs text-surface-500 block" datetime="{{ post.data.published or post.date }}"> <time class="text-xs text-surface-500 block font-mono" datetime="{{ post.data.published or post.date }}">
{{ (post.data.published or post.date) | dateDisplay }} {{ (post.data.published or post.date) | dateDisplay }}
</time> </time>
</div> </div>
@@ -46,7 +46,7 @@
<a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-1"> <a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-1">
Reposted {{ _repostedUrl | replace("https://", "") | truncate(40) }} Reposted {{ _repostedUrl | replace("https://", "") | truncate(40) }}
</a> </a>
<time class="text-xs text-surface-500 block" datetime="{{ post.data.published or post.date }}"> <time class="text-xs text-surface-500 block font-mono" datetime="{{ post.data.published or post.date }}">
{{ (post.data.published or post.date) | dateDisplay }} {{ (post.data.published or post.date) | dateDisplay }}
</time> </time>
</div> </div>
@@ -59,7 +59,7 @@
<a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline line-clamp-1"> <a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline line-clamp-1">
Reply to {{ _replyToUrl | replace("https://", "") | truncate(40) }} Reply to {{ _replyToUrl | replace("https://", "") | truncate(40) }}
</a> </a>
<time class="text-xs text-surface-500 block" datetime="{{ post.data.published or post.date }}"> <time class="text-xs text-surface-500 block font-mono" datetime="{{ post.data.published or post.date }}">
{{ (post.data.published or post.date) | dateDisplay }} {{ (post.data.published or post.date) | dateDisplay }}
</time> </time>
</div> </div>
@@ -69,7 +69,7 @@
<a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-2"> <a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-2">
{{ post.data.title or post.data.name or (post.templateContent | striptags | truncate(50)) or "Note" }} {{ post.data.title or post.data.name or (post.templateContent | striptags | truncate(50)) or "Note" }}
</a> </a>
<time class="text-xs text-surface-500 block" datetime="{{ post.data.published or post.date }}"> <time class="text-xs text-surface-500 block font-mono" datetime="{{ post.data.published or post.date }}">
{{ (post.data.published or post.date) | dateDisplay }} {{ (post.data.published or post.date) | dateDisplay }}
</time> </time>
{% endif %} {% endif %}

View File

@@ -22,7 +22,7 @@
<a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline break-all line-clamp-1"> <a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline break-all line-clamp-1">
Liked {{ likedUrl | replace("https://", "") | truncate(40) }} Liked {{ likedUrl | replace("https://", "") | truncate(40) }}
</a> </a>
<time class="text-xs text-surface-500 block" datetime="{{ post.data.published }}"> <time class="text-xs text-surface-500 block font-mono" datetime="{{ post.data.published }}">
{{ (post.data.published or post.date) | dateDisplay }} {{ (post.data.published or post.date) | dateDisplay }}
</time> </time>
</div> </div>
@@ -37,7 +37,7 @@
<a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-1"> <a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-1">
{{ post.data.title or ("Bookmarked " + (bookmarkedUrl | replace("https://", "") | truncate(35))) }} {{ post.data.title or ("Bookmarked " + (bookmarkedUrl | replace("https://", "") | truncate(35))) }}
</a> </a>
<time class="text-xs text-surface-500 block" datetime="{{ post.data.published }}"> <time class="text-xs text-surface-500 block font-mono" datetime="{{ post.data.published }}">
{{ (post.data.published or post.date) | dateDisplay }} {{ (post.data.published or post.date) | dateDisplay }}
</time> </time>
</div> </div>
@@ -52,7 +52,7 @@
<a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline break-all line-clamp-1"> <a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline break-all line-clamp-1">
Reposted {{ repostedUrl | replace("https://", "") | truncate(40) }} Reposted {{ repostedUrl | replace("https://", "") | truncate(40) }}
</a> </a>
<time class="text-xs text-surface-500 block" datetime="{{ post.data.published }}"> <time class="text-xs text-surface-500 block font-mono" datetime="{{ post.data.published }}">
{{ (post.data.published or post.date) | dateDisplay }} {{ (post.data.published or post.date) | dateDisplay }}
</time> </time>
</div> </div>
@@ -67,7 +67,7 @@
<a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline break-all line-clamp-1"> <a href="{{ post.url }}" class="text-sm text-sky-600 dark:text-sky-400 hover:underline break-all line-clamp-1">
Reply to {{ replyToUrl | replace("https://", "") | truncate(40) }} Reply to {{ replyToUrl | replace("https://", "") | truncate(40) }}
</a> </a>
<time class="text-xs text-surface-500 block" datetime="{{ post.data.published }}"> <time class="text-xs text-surface-500 block font-mono" datetime="{{ post.data.published }}">
{{ (post.data.published or post.date) | dateDisplay }} {{ (post.data.published or post.date) | dateDisplay }}
</time> </time>
</div> </div>
@@ -78,7 +78,7 @@
<a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-1"> <a href="{{ post.url }}" class="text-sm text-accent-600 dark:text-accent-400 hover:underline line-clamp-1">
{{ post.data.title or post.data.name or (post.templateContent | striptags | truncate(50)) or "Note" }} {{ post.data.title or post.data.name or (post.templateContent | striptags | truncate(50)) or "Note" }}
</a> </a>
<time class="text-xs text-surface-500 block" datetime="{{ post.data.published }}"> <time class="text-xs text-surface-500 block font-mono" datetime="{{ post.data.published }}">
{{ (post.data.published or post.date) | dateDisplay }} {{ (post.data.published or post.date) | dateDisplay }}
</time> </time>
{% endif %} {% endif %}

View File

@@ -43,7 +43,7 @@
{{ post.text | truncate(140) }} {{ post.text | truncate(140) }}
</p> </p>
<div class="flex items-center gap-3 mt-2 text-xs text-surface-500"> <div class="flex items-center gap-3 mt-2 text-xs text-surface-500">
<time datetime="{{ post.createdAt }}">{{ post.createdAt | date("MMM d, yyyy") }}</time> <time class="font-mono" datetime="{{ post.createdAt }}">{{ post.createdAt | date("MMM d, yyyy") }}</time>
{% if post.likeCount > 0 %} {% if post.likeCount > 0 %}
<span class="flex items-center gap-1"> <span class="flex items-center gap-1">
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 24 24"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg> <svg class="w-3 h-3" fill="currentColor" viewBox="0 0 24 24"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>
@@ -73,7 +73,7 @@
{{ post.text | truncate(140) }} {{ post.text | truncate(140) }}
</p> </p>
<div class="flex items-center gap-3 mt-2 text-xs text-surface-500"> <div class="flex items-center gap-3 mt-2 text-xs text-surface-500">
<time datetime="{{ post.createdAt }}">{{ post.createdAt | date("MMM d, yyyy") }}</time> <time class="font-mono" datetime="{{ post.createdAt }}">{{ post.createdAt | date("MMM d, yyyy") }}</time>
{% if post.favouritesCount > 0 %} {% if post.favouritesCount > 0 %}
<span class="flex items-center gap-1"> <span class="flex items-center gap-1">
<svg class="w-3 h-3" fill="currentColor" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg> <svg class="w-3 h-3" fill="currentColor" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>

View File

@@ -20,7 +20,7 @@ withBlogSidebar: true
{% endif %} {% endif %}
<div class="post-meta mb-4 sm:mb-6"> <div class="post-meta mb-4 sm:mb-6">
<time-difference><time class="dt-published" datetime="{{ date.toISOString() }}"> <time-difference><time class="dt-published font-mono text-sm" datetime="{{ date.toISOString() }}">
{{ date | dateDisplay }} {{ date | dateDisplay }}
</time></time-difference> </time></time-difference>
{% if category %} {% if category %}

View File

@@ -34,7 +34,7 @@ permalink: "articles/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNu
</h2> </h2>
</div> </div>
<div class="post-meta mt-2"> <div class="post-meta mt-2">
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono text-sm" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
{% if post.data.category %} {% if post.data.category %}

View File

@@ -36,7 +36,7 @@ permalink: "bookmarks/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageN
{% endif %} {% endif %}
</div> </div>
<div class="post-meta mt-2"> <div class="post-meta mt-2">
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono text-sm" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
{% if post.data.category %} {% if post.data.category %}

View File

@@ -60,7 +60,7 @@ eleventyComputed:
</h2> </h2>
</div> </div>
<div class="post-meta mt-2"> <div class="post-meta mt-2">
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono text-sm" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
<span class="post-type">{{ postType }}</span> <span class="post-type">{{ postType }}</span>

2
cv.njk
View File

@@ -127,7 +127,7 @@ pagefindIgnore: true
{# Last Updated #} {# Last Updated #}
{% if cv.lastUpdated %} {% if cv.lastUpdated %}
<p class="text-sm text-surface-500 text-center mt-8"> <p class="text-sm text-surface-500 text-center mt-8">
Last updated: <time datetime="{{ cv.lastUpdated }}">{{ cv.lastUpdated | date("PPP") }}</time> Last updated: <time class="font-mono text-sm" datetime="{{ cv.lastUpdated }}">{{ cv.lastUpdated | date("PPP") }}</time>
</p> </p>
{% endif %} {% endif %}

View File

@@ -34,7 +34,7 @@ permalink: "likes/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumbe
</div> </div>
<div class="flex-1 min-w-0"> <div class="flex-1 min-w-0">
<div class="post-meta"> <div class="post-meta">
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono text-sm" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
{% if post.data.category %} {% if post.data.category %}

View File

@@ -28,7 +28,7 @@ permalink: "notes/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumbe
<li class="h-entry post-card border-l-[3px] border-l-surface-300 dark:border-l-surface-600"> <li class="h-entry post-card border-l-[3px] border-l-surface-300 dark:border-l-surface-600">
<div class="post-header"> <div class="post-header">
<a class="u-url" href="{{ post.url }}"> <a class="u-url" href="{{ post.url }}">
<time class="dt-published text-sm text-surface-500 dark:text-surface-400 font-medium" datetime="{{ post.date | isoDate }}"> <time class="dt-published text-sm text-surface-500 dark:text-surface-400 font-medium font-mono" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
</a> </a>

View File

@@ -39,7 +39,7 @@ permalink: "replies/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNum
</h2> </h2>
{% endif %} {% endif %}
<div class="post-meta"> <div class="post-meta">
<time class="dt-published" datetime="{{ post.date | isoDate }}"> <time class="dt-published font-mono text-sm" datetime="{{ post.date | isoDate }}">
{{ post.date | dateDisplay }} {{ post.date | dateDisplay }}
</time> </time>
{% if post.data.category %} {% if post.data.category %}