mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-07 05:18:40 -04:00
improving feeds
This commit is contained in:
parent
72c2bd4b59
commit
6950c0772c
3 changed files with 22 additions and 10 deletions
|
|
@ -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 -%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue