Add Atom and RSS feeds
Deploy production / deploy (push) Successful in 21s

This commit is contained in:
2026-08-23 17:37:05 -07:00
parent 623686590c
commit a88092631a
13 changed files with 910 additions and 27 deletions
+17 -1
View File
@@ -1,5 +1,12 @@
{% extends "base.html" %}
{% from "macros/tag-links.html" import tag_links with context %}
{% from "macros/feed-links.html" import feed_autodiscovery, visible_feed_links with context %}
{% block feed_head %}
{% if this._id in ['articles', 'blog'] %}
{% set feed_base = 'https://www.labyricorn.com/' ~ this._id ~ '/' %}
{{ feed_autodiscovery(feed_base ~ 'feed.xml', feed_base ~ 'rss.xml', 'Labyricorn - ' ~ this.title) }}
{% endif %}
{% endblock %}
{% block body %}
{% set filter_tags = namespace(values=[]) %}
{% if this._id in ['blog', 'articles', 'projects'] %}
@@ -158,7 +165,16 @@
{% endif %}
<section class="activity-section">
<div class="shell">
<div class="section-heading"><span>{{ this.title }}</span><span data-entry-count>{{ this.children.count() }} entries</span></div>
<div class="section-heading">
<span>{{ this.title }}</span>
<span>
<span data-entry-count>{{ this.children.count() }} entries</span>
{% if this._id in ['articles', 'blog'] %}
{% set feed_base = 'https://www.labyricorn.com/' ~ this._id ~ '/' %}
· {{ visible_feed_links(feed_base ~ 'feed.xml', feed_base ~ 'rss.xml') }}
{% endif %}
</span>
</div>
{% if filter_tags.values %}
<div class="tag-filter" data-tag-filter aria-label="Filter {{ this.title }} by tag">
<button class="tag-filter-button is-active" type="button" data-tag-value="" aria-pressed="true">All</button>