shadowfacts.net/site/feed.xml.ejs

32 lines
1.1 KiB
Plaintext
Raw 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">
<title>Shadowfacts<% if (category) { %> (<%= category %>)<% } %></title>
<subtitle>
<% if (category) { %>
Only <%= category %> posts.
<% } else { %>
Just my various ramblings.
<% } %>
</subtitle>
<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 %>" />
<% if (post.metadata.category) { %>
<category term="<%= post.metadata.category %>" />
<% } %>
<content type="html"><![CDATA[
<%- post.text %>
]]></content>
</entry>
<% } %>
</feed>