blog/atom.xml

47 lines
2.2 KiB
XML

---
layout: null
regenerate: true
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ site.url }}/</id>
<title>{{ site.title | xml_escape }}</title>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<author>
<name>{{ site.author.name | xml_escape }}</name>
<email>{{ site.author.email | xml_escape }}</email>
<uri>{{ site.author.url | xml_escape }}</uri>
</author>
<link rel="self" href="{{ site.url }}/atom.xml" type="application/atom+xml"/>
{%- for category in site.categories %}
<category
term="{{ category[0] | downcase | xml_escape }}"
scheme="{{ site.url }}/blog/{{ category[0] | downcase | xml_escape }}"
label="{{ category[0] | xml_escape }}"/>
{%- endfor %}
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
<rights>All rights reserved {{ site.author.name | xml_escape }} {{ site.posts.last.date | date: "%Y" }} - {{ "now" | date: "%Y" }}</rights>
<subtitle>{{ site.description | xml_escape }}</subtitle>
{% for post in site.posts limit: site.feed.limit %}
{%- unless post.draft %}
{%- capture post_content -%}
{{ post.content |
re_substitute: '<\bscript\b.*>.*<\/\bscript\b>', '' |
re_substitute: '<\biframe\b.*>.*<\/\biframe\b>', ''
}}
{%- endcapture -%}
<entry>
<id>{{ post.url | absolute_url | xml_escape }}</id>
<title>{{ post.title | xml_escape }}</title>
<updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
<content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}">{{ post_content | markdownify | xml_escape }}</content>
<link rel="alternate" type="text/html" href="{{ post.url | absolute_url | xml_escape }}"/>
<summary>{{ post.description | xml_escape }}</summary>
<category term="{{ post.category | downcase | xml_escape }}"/>
<published>{{ post.date | date_to_xmlschema }}</published>
</entry>
{%- endunless %}
{% endfor %}
</feed>