Skip to content

Commit

Permalink
Datetimes on micro titles
Browse files Browse the repository at this point in the history
  • Loading branch information
brookback committed Jan 6, 2024
1 parent 72e463e commit 2ec1399
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/_includes/layouts/note.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ layout: layouts/main.njk
<article class="Note">
<header class="mb2">
<h1 class="f4 no-rhythm mb0">
<a href="{{ url }}" title="Permalink" class="font-serif no-underline target">{{ date | date("PPP — HH:mm") }} <span>#</span></a>
<a href="{{ url }}" title="{{ date | date('HUMAN_DATETIME') }} (permalink)" class="font-serif no-underline target">
<time datetime="{{ post.data.date | date('ATOM') }}" pubdate>{{ post.data.date | date("PPP — HH:mm") }}</time> <span>#</span>
</a>
</h1>
{% if location %}
<p title="Posted from" class="muted font-sans mb0 f5 target">{{ location }}</p>
Expand Down
4 changes: 3 additions & 1 deletion src/mind.njk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ menu:
<article class="Note">
<header class="mb2">
<h1 class="f4 no-rhythm mb0">
<a href="{{ post.data.url }}" title="Permalink" class="font-serif no-underline target">{{ post.data.date | date("PPP — HH:mm") }} <span>#</span></a>
<a href="{{ post.data.url }}" title="{{ post.data.date | date('HUMAN_DATETIME') }} (permalink)" class="font-serif no-underline">
<time datetime="{{ post.data.date | date('ATOM') }}" pubdate>{{ post.data.date | date("PPP — HH:mm") }}</time> <span>#</span>
</a>
</h1>
{% if post.data.location %}
<p title="Posted from" class="muted font-sans mb0 f5 target">{{ post.data.location }}</p>
Expand Down

0 comments on commit 2ec1399

Please sign in to comment.