improving feeds

This commit is contained in:
Parker TenBroeck 2026-01-16 22:29:36 -05:00
parent 72c2bd4b59
commit 6950c0772c
3 changed files with 22 additions and 10 deletions

View file

@ -1,12 +1,13 @@
{% extends "base.html" %}
{% import "macros/taxonomy.html" as macros %}
{% import "macros/post.html" as posts %}
{% import "macros/feed.html" as feed_macros %}
{%- block title -%}
{{ term.name | title }} | {{ config.title }}
{%- endblock -%}
{# {%- block feeds -%}
{%- block feeds -%}
{%- if taxonomy.feed -%}
{%- for filename in config.feed_filenames -%}
@ -18,14 +19,11 @@
{%- set feed_title = config.title ~ " | Posts in the '" ~ term.name ~ "' " ~ singular_name -%}
{%- set feed_filename = taxonomy.name ~ "/" ~ term.name ~ "/" ~ filename -%}
{{ feed_macros::link_alternate(filename=feed_filename, title=feed_title) }}
{% endfor -%}
{%- endif -%}
{%- endblock -%} #}
{%- endblock -%}
{% block rss %}
{% set rss_path = "tags/" ~ term.name ~ "/rss.xml" %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path=rss_path, trailing_slash=false) }}">
{% endblock rss %}
{%- block main -%}