Simplify and organize _config.yml variables
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: post
|
||||
title: Sample Post
|
||||
description: "Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more."
|
||||
excerpt: "Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more."
|
||||
modified: 2013-05-31
|
||||
tags: [intro, beginner, jekyll, tutorial]
|
||||
comments: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Testing Readability with a Bunch of Text"
|
||||
description: "A ton of text to test readability."
|
||||
excerpt: "A ton of text to test readability."
|
||||
tags: [sample post, readability, test]
|
||||
comments: true
|
||||
---
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: post
|
||||
title: "A Post with Images"
|
||||
description: "Examples and code for displaying images in posts."
|
||||
excerpt: "Examples and code for displaying images in posts."
|
||||
tags: [sample post, images, test]
|
||||
comments: true
|
||||
---
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Post with Large Feature Image and Text"
|
||||
description: "Custom written post descriptions are the way to go... if you're not lazy."
|
||||
excerpt: "Custom written post descriptions are the way to go... if you're not lazy."
|
||||
tags: [sample post, readability, test]
|
||||
comments: true
|
||||
image:
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Sample Link Post"
|
||||
description: "Example and code for using link posts."
|
||||
excerpt: "Example and code for using link posts."
|
||||
tags: [sample post, link post]
|
||||
link: http://mademistakes.com
|
||||
share: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: post
|
||||
title: Syntax Highlighting Post
|
||||
description: "Demo post displaying the various ways of highlighting code in Markdown."
|
||||
excerpt: "Demo post displaying the various ways of highlighting code in Markdown."
|
||||
tags: [sample post, code, highlighting]
|
||||
comments: true
|
||||
---
|
||||
|
39
_posts/2014-07-31-author-override.md
Normal file
39
_posts/2014-07-31-author-override.md
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
layout: post
|
||||
title: "Author Override"
|
||||
author: billy_rick
|
||||
modified:
|
||||
excerpt: "A post to test author overrides using a data file."
|
||||
tags: []
|
||||
---
|
||||
|
||||
For those of you who may have content written by multiple authors on your site you can assign different authors to each post if desired.
|
||||
|
||||
Traditionally you would assign a global author for the entire site and those attributes would be used in all post bylines, social networking links in the footer, Twitter Cards, and Google Authorship. These `owner` variables defined in your `config.yml`
|
||||
|
||||
Start by creating an `authors.yml` file in the `_data` folder and add your authors using the following format.
|
||||
|
||||
{% highlight yaml %}
|
||||
# Authors
|
||||
|
||||
billy_rick:
|
||||
name: Billy Rick
|
||||
web: http://thewhip.com
|
||||
email: billy@rick.com
|
||||
bio: "What do you want, jewels? I am a very extravagant man."
|
||||
avatar: bio-photo.jpg
|
||||
twitter: extravagantman
|
||||
|
||||
cornelius_fiddlebone:
|
||||
name: Cornelius Fiddlebone
|
||||
email: cornelius@thewhip.com
|
||||
bio: "I ordered what?"
|
||||
avatar: bio-photo.jpg
|
||||
twitter: rhymeswithsackit
|
||||
{% endhighlight %}
|
||||
|
||||
To assign Billy Rick as an author for our post. We'd add the following YAML front matter to a post:
|
||||
|
||||
{% highlight yaml %}
|
||||
author: billy_rick
|
||||
{% endhighlight %}
|
Reference in New Issue
Block a user