Continue blog implementation

This commit is contained in:
2026-10-05 19:48:08 +01:00
parent 179a830fa9
commit 41993928ab
8 changed files with 38 additions and 11 deletions
+5 -4
View File
@@ -14,8 +14,6 @@
</nav>
<h2>{{ title }}</h2>
<p>{{ description }}</p>
<p style="text-align: center; font-weight: bold; font-style: italic;">This page is relatively new. I'm adding projects as fast as I can but feel free to <a href="/contact">contact me</a> if you want to know about something in particular.</p>
<section id="blog">
{% for row in articles %}
<div class="blog-post">
{% if row.get('link') is not none %}
@@ -44,10 +42,13 @@
{% endif %}
<h3>{{ row.title }}</h3>
</a>
<p class="blogpost-description">{{ row.description }}</p>
<p class="blogpost-date">{{ row.date | human_date }}</p>
<p>{{ get_readtime(row.content) }} read</p>
<hr />
<p class="blogpost-description">{{ get_excerpt(row) }}... <a href="/blog/{{ row.id }}">Read more</a></p>
<hr />
{% for category in row.categories %}
<a class="blogpost-category" href="/projects/category/{{ category }}"> {{ all_categories.get(category, {}).get('title', '') }}{{ ", " if not loop.last }}</loop></a>
<a class="blogpost-category" href="/blog/category/{{ category }}"> {{ all_categories.get(category, {}).get('title', '') }}{{ ", " if not loop.last }}</loop></a>
{% endfor %}
</div>
</div>