Files
expressjs.com/_includes/feed-entry.xml
Rowan Manning 3b8f190f0c 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>
2025-04-14 22:10:04 -05:00

18 lines
680 B
XML

{%- assign entry = include.entry -%}
<entry>
<id>{{ site.url }}{{ entry.url }}</id>
<link href="{{ site.url }}{{ entry.url }}" rel="alternate" type="text/html" />
<title type="text">{{ entry.title }}</title>
{%- if entry.author %}
<author>
<name>{{ entry.author }}</name>
</author>
{%- endif %}
<published>{{ entry.date | date_to_xmlschema }}</published>
<updated>{{ entry.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
{%- for tag in post.tags %}
<category term="{{ tag | xml_escape }}" />
{%- endfor %}
<content type="html"><![CDATA[ <a href="{{ site.url }}{{ entry.url }}">Read {{ entry.title }}</a> ]]></content>
</entry>