From 7d21c0afc372f1f2310e3e6bb02a07afdade7457 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Sun, 6 Mar 2016 22:32:01 -0500 Subject: [PATCH] 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 108118c..0ea8a64 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 4c9cff8..29458ce 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 00ce9b6..db20af4 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 %} -- 2.43.0