Add Atom and JSON feeds for releases and new packages

Fixes #224
This commit is contained in:
rubenwardy
2024-07-02 20:41:39 +01:00
parent e43a7827c2
commit f8abcaa7c6
7 changed files with 273 additions and 3 deletions

View File

@@ -20,9 +20,23 @@
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="ContentDB" />
{% if noindex -%}
<meta name="robots" content="noindex">
<meta name="robots" content="noindex">
{%- endif %}
<link rel="alternate" type="application/json"
href="{{ abs_url_for('feeds.all_json') }}" title="{{ _('ContentDB all') }}">
<link rel="alternate" type="application/json"
href="{{ abs_url_for('feeds.packages_all_json') }}" title="{{ _('ContentDB new packages') }}">
<link rel="alternate" type="application/json"
href="{{ abs_url_for('feeds.releases_all_json') }}" title="{{ _('ContentDB package updates') }}">
<link rel="alternate" type="application/atom+xml"
href="{{ abs_url_for('feeds.all_atom') }}" title="{{ _('ContentDB all') }}">
<link rel="alternate" type="application/atom+xml"
href="{{ abs_url_for('feeds.packages_all_atom') }}" title="{{ _('ContentDB new packages') }}">
<link rel="alternate" type="application/atom+xml"
href="{{ abs_url_for('feeds.releases_all_atom') }}" title="{{ _('ContentDB package updates') }}">
{% block headextra %}{% endblock %}
</head>
<body>