shadowfacts.net/site/feed.xml.ejs

38 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2019-01-04 18:14:53 +00:00
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
2020-08-29 16:09:42 +00:00
<title>Shadowfacts<% if (tag) { %> (<%= tag %>)<% } %></title>
2019-01-04 18:14:53 +00:00
<subtitle>
2020-08-29 16:09:42 +00:00
<% if (tag) { %>
Only <%= tag %> posts.
2019-01-04 18:14:53 +00:00
<% } else { %>
Just my various ramblings.
<% } %>
</subtitle>
2020-08-29 16:09:42 +00:00
<% if (tag) { %>
<category term="<%= tag %>" />
<% } %>
2019-01-04 18:14:53 +00:00
<link rel="alternate" type="text/html" href="https://shadowfacts.net<%= permalink %>" />
<link rel="self" href="https://shadowfacts.net<%= feedPath %>" type="application/atom+xml" />
<id>https://shadowfacts.net<%= feedPath %></id>
<updated><%= new Date().toISOString() %></updated>
<author>
<name>Shadowfacts</name>
</author>
<% for (const post of posts) { %>
<entry>
<id>https://shadowfacts.net<%= post.metadata.permalink %></id>
<title><%= post.metadata.title %></title>
<updated><%= post.metadata.date.toISOString() %></updated>
<link rel="alternate" type="text/html" href="https://shadowfacts.net<%= post.metadata.permalink %>" />
2020-08-29 16:09:42 +00:00
<% if (post.metadata.tags) { %>
<% for (const tag of post.metadata.tags) { %>
<category term="<%= tag %>" />
<% } %>
2019-01-04 18:14:53 +00:00
<% } %>
<content type="html"><![CDATA[
<%- post.text %>
]]></content>
</entry>
<% } %>
2020-08-29 16:09:42 +00:00
</feed>