taxonomy rss

This commit is contained in:
Edgar 2023-06-27 11:57:32 +02:00
parent da37fd8d49
commit ae3909f2d4
No known key found for this signature in database
GPG key ID: 70ADAE8F35904387
3 changed files with 17 additions and 3 deletions

View file

@ -19,7 +19,9 @@
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
<link rel="alternate" type="application/atom+xml" title="RSS" href="/blog/atom.xml"> {% block rss %}
<link rel="alternate" type="application/atom+xml" title="RSS" href="/atom.xml">
{% endblock %}
</head> </head>
<body> <body>
@ -42,7 +44,6 @@
>GitHub</a >GitHub</a
> >
</li> </li>
<li><a href="/blog/atom.xml">RSS</a></li>
</ul> </ul>
</header> </header>
<section class="section container"> <section class="section container">

View file

@ -16,4 +16,6 @@
{% endfor %} {% endfor %}
</ul> </ul>
<p><a href="/atom.xml">RSS Feed</a></p>
{% endblock content %} {% endblock content %}

View file

@ -1,4 +1,13 @@
{% extends "base.html" %} {% block content %} {% extends "base.html" %}
{% set rss_path = term.path ~ "atom.xml" %}
{% block rss %}
{% set rss_path = term.path ~ "atom.xml" %}
<link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path=rss_path, trailing_slash=false) }}">
{% endblock rss %}
{% block content %}
<h1 class="capitalize">{{ term.name }} articles</h1> <h1 class="capitalize">{{ term.name }} articles</h1>
@ -13,4 +22,6 @@
{% endfor %} {% endfor %}
</ul> </ul>
<p><a href="{{ get_url(path=rss_path, trailing_slash=false) }}">RSS Feed</a></p>
{% endblock content %} {% endblock content %}