From 7ad9d674b263531cb68670f482421ad017afab0f Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 22 Feb 2016 09:24:02 -0500 Subject: [PATCH 1/3] Feature: Replace feed.xml with jekyll-feed gem From 1c300ef040611c3b56275f36f16baffabb065eac Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Sun, 6 Mar 2016 22:31:38 -0500 Subject: [PATCH 2/3] Replace bespoke feed.xml with jekyll-feed plugin --- _config.yml | 1 + feed.xml | 43 ------------------------------------------- 2 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 feed.xml diff --git a/_config.yml b/_config.yml index 86f3fb97..8035041d 100644 --- a/_config.yml +++ b/_config.yml @@ -150,6 +150,7 @@ gems: - jekyll-paginate - jekyll-sitemap - jekyll-gist + - jekyll-feed # Outputting permalink: /:categories/:title/ diff --git a/feed.xml b/feed.xml deleted file mode 100644 index 1ebf68f2..00000000 --- a/feed.xml +++ /dev/null @@ -1,43 +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 %} - From 7d21c0afc372f1f2310e3e6bb02a07afdade7457 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Sun, 6 Mar 2016 22:32:01 -0500 Subject: [PATCH 3/3] Rename author hashes for friendlier names in feed.xml --- _data/authors.yml | 6 +++--- _includes/author-profile.html | 3 +++ _posts/2012-03-15-template-author-override.md | 10 +++++----- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/_data/authors.yml b/_data/authors.yml index 108118c4..0ea8a64a 100644 --- a/_data/authors.yml +++ b/_data/authors.yml @@ -1,15 +1,15 @@ # Authors -billy_rick: +Billy Rick: name : "Billy Rick" - web : "http://thewhip.com" + uri : "http://thewhip.com" email : "billy@rick.com" bio : "What do you want, jewels? I am a very extravagant man." avatar : "bio-photo-2.jpg" twitter : "extravagantman" google_plus : "BillyRick" -cornelius_fiddlebone: +Cornelius Fiddlebone: name : "Cornelius Fiddlebone" email : "cornelius@thewhip.com" bio : "I ordered what?" diff --git a/_includes/author-profile.html b/_includes/author-profile.html index 4c9cff8a..29458ce7 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -12,6 +12,9 @@

{{ author.name }}

{% if author.bio %}

{{ author.bio }}

{% endif %} + {% if author.uri %} + Website + {% endif %} {% if author.email %} Email {% endif %} diff --git a/_posts/2012-03-15-template-author-override.md b/_posts/2012-03-15-template-author-override.md index 00ce9b66..db20af45 100644 --- a/_posts/2012-03-15-template-author-override.md +++ b/_posts/2012-03-15-template-author-override.md @@ -1,6 +1,6 @@ --- title: "Template: Author Override" -author: billy_rick +author: Billy Rick excerpt: "A post to test author overrides using a data file." --- For those of you who may have content written by multiple authors on your site you can now assign different authors to each post if desired. @@ -12,15 +12,15 @@ Start by modifying or creating a new `authors.yml` file in the `_data` folder an {% highlight yaml %} # /_data/authors.yml -billy_rick: +Billy Rick: name: Billy Rick - web: http://thewhip.com + uri: http://thewhip.com email: billy@rick.com bio: "What do you want, jewels? I am a very extravagant man." avatar: bio-photo-2.jpg twitter: extravagantman -cornelius_fiddlebone: +Cornelius Fiddlebone: name: Cornelius Fiddlebone email: cornelius@thewhip.com bio: "I ordered what?" @@ -31,5 +31,5 @@ cornelius_fiddlebone: To assign Billy Rick as an author for our post. You'd add the following YAML front matter to a post: {% highlight yaml %} -author: billy_rick +author: Billy Rick {% endhighlight %}