switch to jekyll-feed

Closes #17
This commit is contained in:
James Walker 2022-10-14 23:53:40 -04:00
parent 50b1812483
commit f7c585b487
Signed by: walkah
GPG Key ID: 3C127179D6086E93
4 changed files with 8 additions and 26 deletions

View File

@ -6,6 +6,7 @@ gem 'html-proofer'
group :jekyll_plugins do
gem 'jekyll-compose'
gem 'jekyll-feed'
gem 'jekyll-gist'
gem 'jekyll-postcss'
end

View File

@ -46,6 +46,8 @@ GEM
terminal-table (~> 2.0)
jekyll-compose (0.12.0)
jekyll (>= 3.7, < 5.0)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0)
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-postcss (0.5.0)
@ -102,6 +104,7 @@ DEPENDENCIES
html-proofer
jekyll
jekyll-compose
jekyll-feed
jekyll-gist
jekyll-postcss

View File

@ -16,9 +16,13 @@ exclude:
- shell.nix
- README.md
feed:
path: /atom.xml
postcss:
cache: false
plugins:
- jekyll-gist
- jekyll-feed
- jekyll-postcss

View File

@ -1,26 +0,0 @@
---
layout: null
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title><![CDATA[{{ site.title }}]]></title>
<link href="{{ site.url }}/atom.xml" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/</id>
<author>
<name><![CDATA[{{ site.author | strip_html }}]]></name>
{% if site.email %}<email><![CDATA[{{ site.email }}]]></email>{% endif %}
</author>
{% for post in site.posts limit: 20 %}
<entry>
<title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title>
<link href="{{ site.url }}/{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}/{{ post.id }}</id>
<content type="html"><![CDATA[{{ post.content | expand_urls: site.url | cdata_escape }}]]></content>
</entry>
{% endfor %}
</feed>