lewisdale.dev/src/_includes/post.njk

32 lines
1.4 KiB
Plaintext
Raw Normal View History

---
layout: base.njk
2023-02-15 20:38:52 +00:00
includePrism: true
---
<main class="wrapper-lg stack-lg">
2023-02-16 14:33:53 +00:00
<article class="stack-md h-entry">
<h1 class="p-name"><a href="{{ url }}" class="u-url">{{ title | safe }}</a></h1>
<p class="published">Published: <time class="dt-published" datetime="{{ page.date | dateToRfc3339 }}">{{ page.date | dateDisplay }}</time></p>
2023-02-16 14:33:53 +00:00
<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>
{% set filteredTags = tags | except("posts") | except("draft") %}
2023-12-30 16:36:45 +00:00
{% if filteredTags | 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">
2023-12-30 16:36:45 +00:00
{% for tag in filteredTags %}
2023-12-30 15:38:09 +00:00
<li><a class="p-category" href="/post/tag/{{ tag }}" rel="tag">#{{ tag }}</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-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-11-29 08:34:39 +00:00
</main>