Rename author hashes for friendlier names in feed.xml
This commit is contained in:
		| @@ -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?" | ||||
|   | ||||
| @@ -12,6 +12,9 @@ | ||||
|  | ||||
|   <h3 class="author-name">{{ author.name }}</h3> | ||||
|   {% if author.bio %}<p class="author-bio">{{ author.bio }}</p>{% endif %} | ||||
|   {% if author.uri %} | ||||
|     <a href="{{ author.uri }}" class="author-social" target="_blank"><i class="fa fa-fw fa-globe"></i>Website</a> | ||||
|   {% endif %} | ||||
|   {% if author.email %} | ||||
|     <a href="mailto:{{ author.email }}" class="author-social" target="_blank"><i class="fa fa-fw fa-envelope-square"></i> Email</a> | ||||
|   {% endif %} | ||||
|   | ||||
| @@ -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 %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Rose
					Michael Rose