trying atom feed
This commit is contained in:
parent
b0bbc20e5e
commit
44e834fcb4
2
Gemfile
2
Gemfile
|
@ -5,6 +5,6 @@ gem 'jekyll', '4.1.1'
|
||||||
group :jekyll_plugins do
|
group :jekyll_plugins do
|
||||||
gem 'jekyll-sitemap', '1.4.0'
|
gem 'jekyll-sitemap', '1.4.0'
|
||||||
gem 'jekyll-last-modified-at','1.1.0'
|
gem 'jekyll-last-modified-at','1.1.0'
|
||||||
gem 'jekyll-feed', '0.15.1'
|
# gem 'jekyll-feed', '0.15.1'
|
||||||
# gem 'jekyll-pwa-plugin'
|
# gem 'jekyll-pwa-plugin'
|
||||||
end
|
end
|
||||||
|
|
|
@ -127,7 +127,7 @@ defaults:
|
||||||
resize_style: cover
|
resize_style: cover
|
||||||
uploads_dir: "/images/posts"
|
uploads_dir: "/images/posts"
|
||||||
|
|
||||||
feed:
|
# feed:
|
||||||
path: rss.xml
|
# path: rss.xml
|
||||||
posts_limit: 10
|
# posts_limit: 10
|
||||||
excerpt_only: true
|
# excerpt_only: true
|
25
atom.xml
Normal file
25
atom.xml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
layout: nil
|
||||||
|
---
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
|
<title type="text" xml:lang="en">{{ site.title }}</title>
|
||||||
|
<link type="application/atom+xml" href="{{ site.url }}/feed.xml" rel="self"/>
|
||||||
|
<link type="text/html" href="{{ site.url }}/" rel="alternate"/>
|
||||||
|
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
||||||
|
<id>{{ site.url }}/feed.xml</id>
|
||||||
|
<author>
|
||||||
|
<name>{{ site.publisher.name }}</name>
|
||||||
|
</author>
|
||||||
|
<rights>Copyleft {{ site.time | date: '%Y' }} {{ site.publisher.name }}</rights>
|
||||||
|
|
||||||
|
{% for post in site.posts limit:20 %}
|
||||||
|
<entry>
|
||||||
|
<title>{{ post.title }}</title>
|
||||||
|
<link href="{{ site.url }}{{ post.url }}"/>
|
||||||
|
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
||||||
|
<id>home_url{{ post.id }}</id>
|
||||||
|
<content type="html">{{ post.content | xml_escape }}</content>
|
||||||
|
</entry>
|
||||||
|
{% endfor %}
|
||||||
|
</feed>
|
Loading…
Reference in a new issue