2023-02-07 09:29:01 +00:00
---
layout: base.njk
2023-02-15 20:38:52 +00:00
includePrism: true
eleventyComputed:
2023-02-16 10:46:48 +00:00
title: "{{ post.title.rendered | safe }}"
2023-02-16 14:10:05 +00:00
description: "{{ post.yoast_head_json.description }}"
2023-02-07 09:29:01 +00:00
---
2023-02-14 22:12:04 +00:00
<main class="wrapper-md stack-lg">
2023-02-16 14:33:53 +00:00
<article class="stack-md h-entry">
2023-11-29 08:34:39 +00:00
<h1 class="p-name"><a href="{{ post.url }}" class="u-url">{{ title | safe }}</a></h1>
<p class="published">Published: <time class="dt-published" datetime="{{ post.date | rfc3339 }}">{{ post.date | dateDisplay }}</time></p>
2023-02-16 14:33:53 +00:00
{{ post.excerpt.rendered | safe }}
<div class="e-content stack-md">
2023-02-14 22:12:04 +00:00
{{ content | safe }}
2023-02-16 14:33:53 +00:00
</div>
2023-10-18 12:35:02 +00:00
{% if post.tags | length %}
2023-11-17 14:03:56 +00:00
<section>
2023-10-18 12:35:02 +00:00
<h2>Tags:</h2>
2023-11-17 14:03:56 +00:00
<ul role="list">
{% for tag in post.tags %}
2023-11-29 08:34:39 +00:00
<li><a class="p-category" href="/post/tag/{{ tag.slug }}" rel="tag">#{{ tag.name }}</a></li>
2023-11-17 14:03:56 +00:00
{% endfor %}
</ul>
</section>
2023-10-18 12:35:02 +00:00
{% endif %}
2023-02-14 22:12:04 +00:00
</article>
2023-02-07 09:29:01 +00:00
2023-11-29 08:34:39 +00:00
<section class="p-author h-card" data-section="author">
<h2>About the author</h2>
{% image metadata.author.avatar, "My face", "box circle u-photo", "(max-width: 500px) 50px, 100px", [50, 100] %}
<p class="p-note">I'm <a href="https://{{metadata.site.domain}}" class="u-url p-name">Lewis Dale</a>, a software engineer and web developer based in the UK. I write about writing software, silly projects, and cycling. A lot of cycling. Too much, maybe.</p>
</section>
2023-10-25 07:20:11 +00:00
<section class="stack-sm" data-section="responses">
2023-02-16 14:10:05 +00:00
<h2>Responses</h2>
{% if post.comments.like | length %}
<div class="stack-xs">
<h3 class="block w-full">Likes</h3>
<div class="row overlaps">
{% for like in post.comments.like %}
2023-02-25 21:27:26 +00:00
<a href="{{ like.author.url }}" rel="noreferrer" target="_blank">
2023-11-06 07:59:46 +00:00
{% remoteImage(like.author.avatars["96"], like.author.name, "circle", "96px", [96] %}
2023-02-16 14:10:05 +00:00
</a>
{% endfor %}
</div>
</div>
{% endif %}
2023-10-09 07:57:48 +00:00
2023-02-16 14:10:05 +00:00
{% if post.comments.repost | length %}
<div class="stack-xs">
<h3 class="block w-full">Reposts</h3>
<div class="row overlaps">
2023-11-06 07:59:46 +00:00
{% for repost in post.comments.repost %}
<a href="{{ repost.author.url }}" rel="noreferrer" target="_blank">
{% remoteImage(repost.author.avatars["96"], repost.author.name, "circle", "96px", [96] %}
2023-02-16 14:10:05 +00:00
</a>
{% endfor %}
</div>
</div>
{% endif %}
2023-10-09 07:57:48 +00:00
{% if post.comments.comment | length %}
2023-02-16 14:10:05 +00:00
<div class="stack-xs">
<h3 class="block w-full">Replies</h3>
2023-02-25 21:27:26 +00:00
<ol class="stack-md">
2023-10-09 07:57:48 +00:00
{% for reply in post.comments.comment | reverse %}
2023-02-16 14:10:05 +00:00
2023-02-25 22:25:53 +00:00
<li class="sidebar items-center">
2023-10-09 07:57:48 +00:00
2023-02-25 21:54:49 +00:00
<div class="stack-2xs basis-[50ch]">
2023-02-16 14:10:05 +00:00
{% set date = reply.date | parseDate %}
2023-10-09 07:57:48 +00:00
<h4><a href="{{ reply.author.url }}" rel="noreferrer" target="_blank">{{ reply.author.name }}</a> <span class="font-normal">on</span> {{ date | dateDisplay }} <span class="font-normal">at</span> {{ date | timeDisplay }}</h4>
2023-02-25 21:27:26 +00:00
<a href="{{ reply.canonical }}" rel="noreferrer" target="_blank">Original comment</a>
2023-02-16 14:10:05 +00:00
<p>{{ reply.content | safe }}</p>
</div>
</li>
{% endfor %}
</ol>
</div>
{% endif %}
</section>
2023-11-29 08:34:39 +00:00
</main>