feat: add feeds for the blog and vulnerabilities (#1867)

This adds two new feeds to the site: `feed.xml` includes all blog posts,
and `vulnerabilities.xml` includes all posts tagged with
`vulnerabilities`.

Resolves #1763

---------

Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
This commit is contained in:
Rowan Manning
2025-04-15 04:10:04 +01:00
committed by GitHub
parent cae37bd7bc
commit 3b8f190f0c
10 changed files with 54 additions and 5 deletions

10
_layouts/feed.xml Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title type="text">{{ page.title }}</title>
<link href="{{ site.url }}{{ page.html_url }}" rel="alternate" type="text/html" />
<link href="{{ site.url }}{{ page.url }}" rel="self" type="application/atom+xml" />
<id>{{ site.url }}{{ page.url }}</id>
<rights>Copyright The Express Contributors</rights>
<updated>{{ site.time | date_to_xmlschema }}</updated>
{{ content }}
</feed>