Simplify and organize _config.yml variables

This commit is contained in:
Michael Rose 2014-07-31 09:37:41 -04:00
parent f4869f79c4
commit 1a3231f506
21 changed files with 175 additions and 140 deletions

2
404.md
View file

@ -1,7 +1,7 @@
--- ---
layout: page layout: page
title: "Page Not Found" title: "Page Not Found"
description: "Page not found. Your pixels are in another canvas." excerpt: "Page not found. Your pixels are in another canvas."
image: image:
feature: texture-feature-01.jpg feature: texture-feature-01.jpg
credit: Texture Lovers credit: Texture Lovers

View file

@ -1,45 +1,16 @@
# Site wide configuration
title: Site Title title: Site Title
description: Describe your website. description: Describe your website.
# Your site's domain goes here. Leave localhost server or blank when working locally. locale: en_US
url: http://localhost:4000 url: http://localhost:4000
disqus_shortname:
# Owner/author information
owner:
name: Your Name
avatar: bio-photo.jpg
bio: "Describe your self."
email: your@email.com
# Social networking links are used in author-bio sidebar. Update and remove as you like.
twitter:
facebook:
github:
stackoverflow:
linkedin:
instagram:
lastfm:
tumblr:
pinterest:
foursquare:
steam:
dribbble:
# For Google Authorship https://plus.google.com/authorship
google_plus:
# Analytics and webmaster tools stuff goes here # Jekyll configuration
google_analytics:
google_verify:
# https://ssl.bing.com/webmaster/configure/verify/ownership Option 2 content= goes here
bing_verify:
# http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone: America/New_York
future: true
highlighter: pygments
markdown: kramdown
# https://github.com/mojombo/jekyll/wiki/Permalinks
permalink: /:categories/:title/ permalink: /:categories/:title/
markdown: kramdown
highlighter: pygments
kramdown: kramdown:
auto_ids: true auto_ids: true
@ -48,12 +19,33 @@ kramdown:
toc_levels: 1..6 toc_levels: 1..6
use_coderay: false use_coderay: false
coderay:
coderay_line_numbers: # Site owner
coderay_line_numbers_start: 1 owner:
coderay_tab_width: 4 name: Your Name
coderay_bold_every: 10 avatar: bio-photo.jpg
coderay_css: class bio: "Describe your self."
email: your@email.com
disqus-shortname: minimalmistakes
twitter: mmistakes
facebook: michaelrose
google:
plus: +MichaelRoseDesign
analytics: UA-2011187-3
verify: UQj93ERU9zgECodaaXgVpkjrFn9UrDMEzVamacSoQ8Y
ad-client: ca-pub-7328585512091257
ad-slot: 7855747535
bing-verify: D81F4C18A6CB3018F64D7C827D953DFD
github: mmistakes
stackoverflow:
linkedin:
instagram: mmistakes
lastfm:
tumblr:
pinterest:
foursquare:
steam:
dribbble:
include: [".htaccess"] include: [".htaccess"]
exclude: ["lib", "config.rb", "Capfile", "config", "log", "Rakefile", "Rakefile.rb", "tmp", "less", "*.sublime-project", "*.sublime-workspace", "test", "spec", "Gruntfile.js", "package.json", "node_modules", "Gemfile", "Gemfile.lock", "LICENSE", "README.md"] exclude: ["lib", "config.rb", "Capfile", "config", "log", "Rakefile", "Rakefile.rb", "tmp", "less", "*.sublime-project", "*.sublime-workspace", "test", "spec", "Gruntfile.js", "package.json", "node_modules", "Gemfile", "Gemfile.lock", "LICENSE", "README.md"]

20
_data/authors.yml Normal file
View file

@ -0,0 +1,20 @@
# 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
google:
plus: +BillyRick
cornelius_fiddlebone:
name: Cornelius Fiddlebone
email: cornelius@thewhip.com
bio: "I ordered what?"
avatar: bio-photo.jpg
twitter: rhymeswithsackit
google:
plus: +CorneliusFiddlebone

View file

@ -1,22 +1,24 @@
{% if site.owner.avatar contains 'http://' %} {% if page.author %}
<img src="{{ site.owner.avatar }}" class="bio-photo" alt="{{ site.owner.name }} bio photo"></a> {% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}
{% elsif site.owner.avatar contains 'https://' %}
<img src="{{ site.owner.avatar }}" class="bio-photo" alt="{{ site.owner.name }} bio photo"></a>
{% else %}
<img src="{{ site.url }}/images/{{ site.owner.avatar }}" class="bio-photo" alt="{{ site.owner.name }} bio photo"></a>
{% endif %} {% endif %}
<h3>{{ site.owner.name }}</h3>
<p>{{ site.owner.bio }}</p> {% if author.avatar contains 'http' %}
{% if site.owner.twitter %}<a href="http://twitter.com/{{ site.owner.twitter }}" class="author-social" target="_blank"><i class="fa fa-twitter-square"></i> Twitter</a>{% endif %} <img src="{{ author.avatar }}" class="bio-photo" alt="{{ author.name }} bio photo"></a>
{% if site.owner.facebook %}<a href="http://facebook.com/{{ site.owner.facebook }}" class="author-social" target="_blank"><i class="fa fa-facebook-square"></i> Facebook</a>{% endif %} {% else %}
{% if site.owner.google_plus %}<a href="http://plus.google.com/+{{ site.owner.google_plus }}" class="author-social" target="_blank"><i class="fa fa-google-plus-square"></i> Google+</a>{% endif %} <img src="{{ site.url }}/images/{{ author.avatar }}" class="bio-photo" alt="{{ author.name }} bio photo"></a>
{% if site.owner.linkedin %}<a href="http://linkedin.com/in/{{ site.owner.linkedin }}" class="author-social" target="_blank"><i class="fa fa-linkedin-square"></i> LinkedIn</a>{% endif %} {% endif %}
{% if site.owner.instagram %}<a href="http://instagram.com/{{ site.owner.instagram }}" class="author-social" target="_blank"><i class="fa fa-instagram"></i> Instagram</a>{% endif %} <h3>{{ author.name }}</h3>
{% if site.owner.tumblr %}<a href="http://{{ site.owner.tumblr }}.tumblr.com" class="author-social" target="_blank"><i class="fa fa-tumblr-square"></i> Tumblr</a>{% endif %} <p>{{ author.bio }}</p>
{% if site.owner.github %}<a href="http://github.com/{{ site.owner.github }}" class="author-social" target="_blank"><i class="fa fa-github"></i> Github</a>{% endif %} {% if author.twitter %}<a href="http://twitter.com/{{ author.twitter }}" class="author-social" target="_blank"><i class="fa fa-twitter-square"></i> Twitter</a>{% endif %}
{% if site.owner.stackoverflow %}<a href="http://stackoverflow.com/users/{{ site.owner.stackoverflow }}" class="author-social" target="_blank"><i class="fa fa-stack-overflow"></i> Stackoverflow</a>{% endif %} {% if author.facebook %}<a href="http://facebook.com/{{ author.facebook }}" class="author-social" target="_blank"><i class="fa fa-facebook-square"></i> Facebook</a>{% endif %}
{% if site.owner.lastfm %}<a href="http://lastfm.com/user/{{ site.owner.lastfm }}" class="author-social" target="_blank"><i class="fa fa-music"></i> Last.fm</a>{% endif %} {% if author.google_plus %}<a href="http://plus.google.com/+{{ author.google_plus }}" class="author-social" target="_blank"><i class="fa fa-google-plus-square"></i> Google+</a>{% endif %}
{% if site.owner.dribbble %}<a href="http://dribbble.com/{{ site.owner.dribbble }}" class="author-social" target="_blank"><i class="fa fa-dribbble"></i> Dribbble</a>{% endif %} {% if author.linkedin %}<a href="http://linkedin.com/in/{{ author.linkedin }}" class="author-social" target="_blank"><i class="fa fa-linkedin-square"></i> LinkedIn</a>{% endif %}
{% if site.owner.pinterest %}<a href="http://www.pinterest.com/{{ site.owner.pinterest }}" class="author-social" target="_blank"><i class="fa fa-pinterest"></i> Pinterest</a>{% endif %} {% if author.instagram %}<a href="http://instagram.com/{{ author.instagram }}" class="author-social" target="_blank"><i class="fa fa-instagram"></i> Instagram</a>{% endif %}
{% if site.owner.foursquare %}<a href="http://foursquare.com/{{ site.owner.foursquare }}" class="author-social" target="_blank"><i class="fa fa-foursquare"></i> Foursquare</a>{% endif %} {% if author.tumblr %}<a href="http://{{ author.tumblr }}.tumblr.com" class="author-social" target="_blank"><i class="fa fa-tumblr-square"></i> Tumblr</a>{% endif %}
{% if site.owner.steam %}<a href="http://steamcommunity.com/id/{{ site.owner.steam }}" class="author-social" target="_blank"><i class="fa fa-steam-square"></i> Steam</a>{% endif %} {% if author.github %}<a href="http://github.com/{{ author.github }}" class="author-social" target="_blank"><i class="fa fa-github"></i> Github</a>{% endif %}
{% if author.stackoverflow %}<a href="http://stackoverflow.com/users/{{ author.stackoverflow }}" class="author-social" target="_blank"><i class="fa fa-stack-overflow"></i> Stackoverflow</a>{% endif %}
{% if author.lastfm %}<a href="http://lastfm.com/user/{{ author.lastfm }}" class="author-social" target="_blank"><i class="fa fa-music"></i> Last.fm</a>{% endif %}
{% if author.dribbble %}<a href="http://dribbble.com/{{ author.dribbble }}" class="author-social" target="_blank"><i class="fa fa-dribbble"></i> Dribbble</a>{% endif %}
{% if author.pinterest %}<a href="http://www.pinterest.com/{{ author.pinterest }}" class="author-social" target="_blank"><i class="fa fa-pinterest"></i> Pinterest</a>{% endif %}
{% if author.foursquare %}<a href="http://foursquare.com/{{ author.foursquare }}" class="author-social" target="_blank"><i class="fa fa-foursquare"></i> Foursquare</a>{% endif %}
{% if author.steam %}<a href="http://steamcommunity.com/id/{{ author.steam }}" class="author-social" target="_blank"><i class="fa fa-steam-square"></i> Steam</a>{% endif %}

View file

@ -1,7 +1,7 @@
{% if site.disqus_shortname %} {% if site.owner.disqus-shortname %}
<script type="text/javascript"> <script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ site.disqus_shortname }}'; // required: replace example with your forum shortname var disqus_shortname = '{{ site.owner.disqus-shortname }}'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */ /* * * DON'T EDIT BELOW THIS LINE * * */
(function() { (function() {

View file

@ -1 +1,13 @@
<div class="google-ads">
<!-- 320 x 50 ad -->
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:inline-block;width:320px;height:50px"
data-ad-client="{{ site.owner.google.ad-client }}"
data-ad-slot="{{ site.owner.goodle.slot }}"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div><!-- /.google-ads -->
<span>&copy; {{ site.time | date: '%Y' }} {{ site.owner.name }}. Powered by <a href="http://jekyllrb.com">Jekyll</a> using the <a href="http://mademistakes.com/minimal-mistakes/">Minimal Mistakes</a> theme.</span> <span>&copy; {{ site.time | date: '%Y' }} {{ site.owner.name }}. Powered by <a href="http://jekyllrb.com">Jekyll</a> using the <a href="http://mademistakes.com/minimal-mistakes/">Minimal Mistakes</a> theme.</span>

View file

@ -1,62 +1,21 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} &#8211; {% endif %}{{ site.title }}</title> <title>{% if page.title %}{{ page.title }} &#8211; {% endif %}{{ site.title }}</title>
<meta name="description" content="{{ page.description }}"> {% if page.excerpt %}<meta name="description" content="{{ page.excerpt | strip_html }}">{% endif %}
<meta name="keywords" content="{{ page.tags | join: ', ' }}"> <meta name="keywords" content="{{ page.tags | join: ', ' }}">
{% if site.owner.twitter %}<!-- Twitter Cards --> {% if page.author %}
{% if page.image.feature %} {% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content=
{% if page.image.feature contains 'http://' %}
"{{ page.image.feature }}"
{% elsif page.image.feature contains 'https://' %}
"{{ page.image.feature }}"
{% else %}
"{{ site.url }}/images/{{ page.image.feature }}"
{% endif %}
>
{% else %}
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content=
{% if page.image.thumb %}
{% if page.image.thumb contains 'http://' %}
"{{ page.image.thumb }}"
{% elsif page.image.thumb contains 'https://' %}
"{{ page.image.thumb }}"
{% else %}
"{{ site.url }}/images/{{ page.image.thumb }}"
{% endif %}
{% else %}
{% if site.logo contains 'http://' %}
"{{ site.logo }}"
{% elsif site.logo contains 'https://' %}
"{{ site.logo }}"
{% else %}
"{{ site.url }}/images/{{ site.logo }}"
{% endif %}
{% endif %}
>
{% endif %}
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
<meta name="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
<meta name="twitter:creator" content="@{{ site.owner.twitter }}">
{% endif %} {% endif %}
<!-- Open Graph --> {% include _open-graph.html %}
<meta property="og:locale" content="en_US">
<meta property="og:type" content="article">
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:site_name" content="{{ site.title }}">
{% if site.google_verify %}<!-- Webmaster Tools verfication --> {% if site.owner.google.verify %}<!-- Webmaster Tools verfication -->
<meta name="google-site-verification" content="{{ site.google_verify }}">{% endif %} <meta name="google-site-verification" content="{{ site.owner.google.verify }}">{% endif %}
{% if site.bing_verify %}<meta name="msvalidate.01" content="{{ site.bing_verify }}">{% endif %} {% if site.owner.bing-verify %}<meta name="msvalidate.01" content="{{ site.owner.bing-verify }}">{% endif %}
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %} {% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
<link rel="canonical" href="{{ canonical }}"> <link rel="canonical" href="{{ canonical }}">
<link href="{{ site.url }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed"> <link href="{{ site.url }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
{% if site.owner.google_plus %}<link rel="author" href="http://plus.google.com/+{{ site.owner.google_plus }}?rel=author">{% endif %} {% if site.owner.google.plus %}<link rel="author" href="http://plus.google.com/+{{ site.owner.google.plus }}?rel=author">{% endif %}
<!-- http://t.co/dKP3o1e --> <!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True"> <meta name="HandheldFriendly" content="True">

View file

@ -0,0 +1,19 @@
<!-- Twitter Cards -->
<meta name="twitter:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
{% if page.excerpt %}<meta name="twitter:description" content="{{ page.excerpt | strip_html }}">{% endif %}
{% if site.owner.twitter %}<meta name="twitter:site" content="@{{ site.owner.twitter }}">{% endif %}
{% if author.twitter %}<meta name="twitter:creator" content="@{{ author.twitter }}">{% endif %}
{% if page.image.feature %}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{ site.url }}/images/{{ page.image.feature }}">
{% else %}
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}">
{% endif %}
<!-- Open Graph -->
<meta property="og:locale" content="{{ site.locale }}">
<meta property="og:type" content="article">
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
{% if page.excerpt %}<meta property="og:description" content="{{ page.excerpt | strip_html }}">{% endif %}
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
<meta property="og:site_name" content="{{ site.title }}">

View file

@ -1,14 +1,14 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script> <script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="{{ site.url }}/assets/js/scripts.min.js"></script> <script src="{{ site.url }}/assets/js/scripts.min.js"></script>
{% if site.google_analytics %} {% if site.owner.google.analytics %}
<!-- Asynchronous Google Analytics snippet --> <!-- Asynchronous Google Analytics snippet -->
<script> <script>
var _gaq = _gaq || []; var _gaq = _gaq || [];
var pluginUrl = var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js'; '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]); _gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', '{{ site.google_analytics }}']); _gaq.push(['_setAccount', '{{ site.owner.google.analytics }}']);
_gaq.push(['_trackPageview']); _gaq.push(['_trackPageview']);
(function() { (function() {

View file

@ -16,9 +16,7 @@
{% if page.image.feature %} {% if page.image.feature %}
<div class="image-wrap"> <div class="image-wrap">
<img src= <img src=
{% if page.image.feature contains 'http://' %} {% if page.image.feature contains 'http' %}
"{{ page.image.feature }}"
{% elsif page.image.feature contains 'https://' %}
"{{ page.image.feature }}" "{{ page.image.feature }}"
{% else %} {% else %}
"{{ site.url }}/images/{{ page.image.feature }}" "{{ site.url }}/images/{{ page.image.feature }}"
@ -42,7 +40,7 @@
<h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></h2> <h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></h2>
{% else %} {% else %}
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2> <h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p> <p>{{ post.excerpt | strip_html | truncate: 160 }}</p>
{% endif %} {% endif %}
</article> </article>
{% endfor %} {% endfor %}

View file

@ -16,9 +16,7 @@
{% if page.image.feature %} {% if page.image.feature %}
<div class="image-wrap"> <div class="image-wrap">
<img src= <img src=
{% if page.image.feature contains 'http://' %} {% if page.image.feature contains 'http' %}
"{{ page.image.feature }}"
{% elsif page.image.feature contains 'https://' %}
"{{ page.image.feature }}" "{{ page.image.feature }}"
{% else %} {% else %}
"{{ site.url }}/images/{{ page.image.feature }}" "{{ site.url }}/images/{{ page.image.feature }}"
@ -39,7 +37,7 @@
<div class="article-wrap"> <div class="article-wrap">
{{ content }} {{ content }}
</div><!-- /.article-wrap --> </div><!-- /.article-wrap -->
{% if site.disqus_shortname and page.comments %} {% if site.owner.disqus-shortname and page.comments == true %}
<section id="disqus_thread"></section><!-- /#disqus_thread --> <section id="disqus_thread"></section><!-- /#disqus_thread -->
{% endif %} {% endif %}
</article> </article>

View file

@ -16,9 +16,7 @@
{% if page.image.feature %} {% if page.image.feature %}
<div class="image-wrap"> <div class="image-wrap">
<img src= <img src=
{% if page.image.feature contains 'http://' %} {% if page.image.feature contains 'http' %}
"{{ page.image.feature }}"
{% elsif page.image.feature contains 'https://' %}
"{{ page.image.feature }}" "{{ page.image.feature }}"
{% else %} {% else %}
"{{ site.url }}/images/{{ page.image.feature }}" "{{ site.url }}/images/{{ page.image.feature }}"
@ -51,7 +49,7 @@
<h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></h2> <h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></h2>
{% else %} {% else %}
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2> <h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p> <p>{{ post.excerpt | strip_html | truncate: 160 }}</p>
{% endif %} {% endif %}
</article> </article>
{% endfor %} {% endfor %}

View file

@ -16,9 +16,7 @@
{% if page.image.feature %} {% if page.image.feature %}
<div class="image-wrap"> <div class="image-wrap">
<img src= <img src=
{% if page.image.feature contains 'http://' %} {% if page.image.feature contains 'http' %}
"{{ page.image.feature }}"
{% elsif page.image.feature contains 'https://' %}
"{{ page.image.feature }}" "{{ page.image.feature }}"
{% else %} {% else %}
"{{ site.url }}/images/{{ page.image.feature }}" "{{ site.url }}/images/{{ page.image.feature }}"
@ -49,10 +47,10 @@
<div class="article-author-bottom"> <div class="article-author-bottom">
{% include _author-bio.html %} {% include _author-bio.html %}
</div> </div>
<p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %} by <a href="{{ site.url }}/about" title="About {{ site.owner.name }}">{{ site.owner.name }}</a>.</p> <p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %}.</p>
</footer> </footer>
</div><!-- /.article-wrap --> </div><!-- /.article-wrap -->
{% if site.disqus_shortname and page.comments %} {% if site.owner.disqus-shortname and page.comments == true %}
<section id="disqus_thread"></section><!-- /#disqus_thread --> <section id="disqus_thread"></section><!-- /#disqus_thread -->
{% endif %} {% endif %}
</article> </article>

View file

@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Sample 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 modified: 2013-05-31
tags: [intro, beginner, jekyll, tutorial] tags: [intro, beginner, jekyll, tutorial]
comments: true comments: true

View file

@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: "Testing Readability with a Bunch of Text" 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] tags: [sample post, readability, test]
comments: true comments: true
--- ---

View file

@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: "A Post with Images" 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] tags: [sample post, images, test]
comments: true comments: true
--- ---

View file

@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: "Post with Large Feature Image and Text" 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] tags: [sample post, readability, test]
comments: true comments: true
image: image:

View file

@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: "Sample Link 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] tags: [sample post, link post]
link: http://mademistakes.com link: http://mademistakes.com
share: true share: true

View file

@ -1,7 +1,7 @@
--- ---
layout: post layout: post
title: Syntax Highlighting 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] tags: [sample post, code, highlighting]
comments: true comments: true
--- ---

View 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 %}

View file

@ -1,6 +1,6 @@
--- ---
layout: home layout: home
description: "A responsive Jekyll theme with editorial tendencies by designer Michael Rose." excerpt: "A responsive Jekyll theme with editorial tendencies by designer Michael Rose."
tags: [Jekyll, theme, responsive, blog, template] tags: [Jekyll, theme, responsive, blog, template]
image: image:
feature: texture-feature-01.jpg feature: texture-feature-01.jpg