From 6e61e124f18cf9aa48474ecafb86ff817fef8658 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 1 Jun 2016 14:38:50 -0400 Subject: [PATCH] Remove feed.xml and replace with jekyll-feed gem --- Gemfile | 1 + Gemfile.lock | 2 ++ _config.yml | 1 + feed.xml | 42 ------------------------------------------ 4 files changed, 4 insertions(+), 42 deletions(-) delete mode 100644 feed.xml diff --git a/Gemfile b/Gemfile index 6af3cb879bc..718d148751a 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,4 @@ source "https://rubygems.org" gem "jekyll" gem "jekyll-sitemap" gem "jekyll-gist" +gem "jekyll-feed" diff --git a/Gemfile.lock b/Gemfile.lock index b6637646dd8..9bc6754816b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -16,6 +16,7 @@ GEM mercenary (~> 0.3.3) rouge (~> 1.7) safe_yaml (~> 1.0) + jekyll-feed (0.5.1) jekyll-gist (1.4.0) octokit (~> 4.2) jekyll-sass-converter (1.4.0) @@ -48,6 +49,7 @@ PLATFORMS DEPENDENCIES jekyll + jekyll-feed jekyll-gist jekyll-sitemap diff --git a/_config.yml b/_config.yml index 4d8173a5731..553c3b528bc 100644 --- a/_config.yml +++ b/_config.yml @@ -18,6 +18,7 @@ sass: gems: - jekyll-sitemap - jekyll-gist + - jekyll-feed kramdown: input: GFM diff --git a/feed.xml b/feed.xml deleted file mode 100644 index 9938c5b67b0..00000000000 --- a/feed.xml +++ /dev/null @@ -1,42 +0,0 @@ ---- -sitemap: false ---- - - -{{ site.title }} -Jekyll - - -{{ site.time | date_to_xmlschema }} -{{ site.url }}/ - - {{ site.owner.name }} - {{ site.url }}/ - {% if site.owner.email %}{{ site.owner.email }}{% endif %} - -{% for post in site.posts limit:20 %} -{% if post.author %} - {% assign author = site.data.authors[post.author] %} -{% else %} - {% assign author = site.owner %} -{% endif %} - - <![CDATA[{{ post.title | cdata_escape }}]]> - - {{ site.url }}{{ post.id }} - {% if post.modified %}{{ post.modified | to_xmlschema }}T00:00:00-00:00 - {{ post.date | date_to_xmlschema }} - {% else %}{{ post.date | date_to_xmlschema }} - {{ post.date | date_to_xmlschema }}{% endif %} - - {{ author.name }} - {{ site.url }} - {% if author.email %}{{ author.email }}{% endif %} - - - {{ post.content | xml_escape }} - {% include feed-footer.html %} - - -{% endfor %} - \ No newline at end of file