Fix datetimes on homepage
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m40s

This commit is contained in:
Lewis Dale 2024-03-14 07:54:20 +00:00
parent 6bcfbe1c52
commit aa47fa3c52
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ eleventyExcludeFromCollections: true
{%- for post in collections.posts | reverse %}
{%- set absolutePostUrl = post.url | absoluteUrl(metadata.site.url) %}
<item>
<title>{{ post.data.title }}</title>
<title>{{ post.data.title | safe }}</title>
<link>{{ absolutePostUrl }}</link>
<description>{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</description>
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>

View File

@ -18,7 +18,7 @@ layout: base.njk
{% image metadata.author.avatar, "My face", "box circle u-photo", "300px", [300] %}
<p class="inline-block max-w-[45ch] p-note">
I'm a software engineer who loves building things for the web. I consider myself a generalist, but on a given day I'll probably be working with Typescript, HTML and CSS, and on occasion a touch of .NET. I work for <a href="https://triptease.com" target="_blank" rel="noreferrer" class="p-org">Triptease</a> as a Senior Software Engineer, and on the side I'm learning Rust by building a <a href="/post/creating-a-sinclair-basic-interpreter/">Sinclair BASIC Interpreter</a/>.
I'm a software engineer who loves building things for the web. I consider myself a generalist, but on a given day I'll probably be working with Typescript, HTML and CSS, and on occasion a touch of .NET. I work for <a href="https://triptease.com" target="_blank" rel="noreferrer" class="p-org">Triptease</a> as a Senior Software Engineer, and on the side I'm learning Rust by building a <a href="/post/creating-a-sinclair-basic-interpreter/">Sinclair BASIC Interpreter</a>.
</p>
@ -35,7 +35,7 @@ layout: base.njk
<ul class="stack-2xs" role='list'>
{% for post in collections.posts | reverse | take(3) %}
<li><a href="{{ post.url }}">{{ post.data.title | safe }}</a> <time datetime="{{ post.date }}">{{ post.date | dateDisplay }}</time></li>
<li><a href="{{ post.url }}">{{ post.data.title | safe }}</a> <time datetime="{{ post.date | dateToRfc3339 }}">{{ post.date | dateDisplay }}</time></li>
{% endfor %}
</ul>