Add devlogs to taxonomy and activity feeds
Deploy production / deploy (push) Successful in 3s

This commit is contained in:
2026-08-11 23:57:15 -07:00
parent 75a8b910bc
commit 2964bdaf24
28 changed files with 189 additions and 37 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
{% extends "base.html" %}
{% from "macros/tag-links.html" import taxonomy_labels with context %}
{% block body %}
{% set project = this.parent.parent %}
{% set siblings = this.get_siblings() %}
@@ -19,7 +20,7 @@
<dt>Source commit</dt>
<dd><a href="{{ this.source_commit_url }}"><code>{{ this.source_commit[:10] }}</code></a></dd>
</div>
{% if this.topic_tags %}<div class="post-info-row"><dt>Topics</dt><dd class="technology-list">{% for tag in this.topic_tags %}<span>{{ tag }}</span>{% endfor %}</dd></div>{% endif %}
{% if this.topic_labels %}<div class="post-info-row"><dt>Topics</dt><dd class="technology-list">{{ taxonomy_labels(this.topic_labels) }}</dd></div>{% endif %}
</dl>
</aside>
+2 -1
View File
@@ -1,4 +1,5 @@
{% extends "base.html" %}
{% from "macros/tag-links.html" import taxonomy_labels with context %}
{% block body %}
{% set project = this.parent %}
<section class="hero compact devlog-hero">
@@ -17,7 +18,7 @@
<div class="entry-meta"><span class="label">Devlog</span><time datetime="{{ entry.date }}">{{ entry.date|dateformat('YYYY.MM.dd') }}</time></div>
<h2><a href="{{ entry|url }}">{{ entry.title }}</a></h2>
<p>{{ entry.summary }}</p>
{% if entry.topic_tags %}<div class="technology-list">{% for tag in entry.topic_tags %}<span>{{ tag }}</span>{% endfor %}</div>{% endif %}
{% if entry.topic_labels %}<div class="technology-list">{{ taxonomy_labels(entry.topic_labels) }}</div>{% endif %}
<a class="read-more" href="{{ entry|url }}">Read entry →</a>
</article>
{% endfor %}
+10 -1
View File
@@ -19,6 +19,16 @@
{% if entries.append(item) %}{% endif %}
{% endfor %}
{% endfor %}
{% for project in site.query('/projects') %}
{% if project._model == 'project' %}
{% set devlog = site.get(project.path ~ '/devlog') %}
{% if devlog %}
{% for entry in devlog.children %}
{% if entries.append(entry) %}{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% for item in entries|sort(attribute='date', reverse=true) %}
<article class="timeline-entry accent-{{ item.kicker|lower }}">
<div class="entry-meta">
@@ -33,4 +43,3 @@
</div>
</div>
</section>
+10
View File
@@ -18,6 +18,16 @@
{% if tag._id in item_tags %}{% set usage.count = usage.count + 1 %}{% endif %}
{% endfor %}
{% endfor %}
{% for project in site.query('/projects') %}
{% if project._model == 'project' %}
{% set devlog = site.get(project.path ~ '/devlog') %}
{% if devlog %}
{% for entry in devlog.children %}
{% if tag._id in entry.topic_tag_slugs %}{% set usage.count = usage.count + 1 %}{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
<a class="tag-directory-card" href="{{ tag|url }}">
<span class="tag-directory-name">{{ tag.title }}</span>
<span class="tag-directory-count">{{ usage.count }} {% if usage.count == 1 %}entry{% else %}entries{% endif %}</span>
+12 -2
View File
@@ -8,6 +8,16 @@
{% if this._id in item_tags %}{% set matches.items = matches.items + [item] %}{% endif %}
{% endfor %}
{% endfor %}
{% for project in site.query('/projects') %}
{% if project._model == 'project' %}
{% set devlog = site.get(project.path ~ '/devlog') %}
{% if devlog %}
{% for entry in devlog.children %}
{% if this._id in entry.topic_tag_slugs %}{% set matches.items = matches.items + [entry] %}{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
<section class="hero compact">
<div class="shell narrow">
<p class="eyebrow">Tag</p>
@@ -24,7 +34,7 @@
{% if matches.items %}
<div class="card-grid">
{% for item in matches.items|sort(attribute='date', reverse=true) %}
{% set item_tags = item.taxonomy_tags if item._model == 'project' else item.tags %}
{% set item_tags = item.taxonomy_tags if item._model == 'project' else (item.topic_tag_slugs if item._model == 'devlog-entry' else item.tags) %}
<article class="entry-card accent-{{ item.kicker|lower }}">
<div class="entry-meta"><span class="label">{{ item.kicker }}</span><time>{{ item.date|dateformat('YYYY.MM.dd') }}</time></div>
<h2><a href="{{ item|url }}">{{ item.title }}</a></h2>
@@ -35,7 +45,7 @@
{% endfor %}
</div>
{% else %}
<p class="empty-state">No projects, blog entries, or articles use this tag yet.</p>
<p class="empty-state">No projects, devlog entries, blog entries, or articles use this tag yet.</p>
{% endif %}
</div>
</section>