Lego2012
2/2/2017 - 7:18 PM

Display data from Jekyll _data file

Display data from Jekyll _data file

dave:
  id: dave
  name: David Smiths
  link: /bitcoin-expert/
  twitter: DavidSilvaSmith
  image: http://www.gravatar.com/avatar/7bbd083ea04a3c791e878da24c08b987.png
  bio: David is the CEO of bitcoin bulls.

paul:
  id: paul
  name: Paul
  link: http://www.paulsmith.com
  twitter: PaulSmith
  image: http://www.cs.mcgill.ca/~kry/kry-acm1.png
  bio: Paul Smith rocks
---
layout: sidebar-container
author: paul
includeHeader: blog-image.html
---
{% assign author = site.data.people.[page.author] %}
<article class="container">
  <header>
    <h1 class="title">{{ page.title }}</h1>
    {% if page.subtitle %}<h2 class="subtitle">{{ page.subtitle }}</h2>{% endif %}
      <div class="meta">
        By <address><a rel="author" href="{{ author.link }}" title="{{ author.name }}" target="_blank">{{ author.name }}</a></address> &mdash;
        <time pubdate datetime="{{ page.date | date: "%Y-%d-%B" }}" title="{{ page.date | date: "%B %d, %Y" }}">{{ page.date | date: "%B %d, %Y" }}</time>
      </div>
  </header>
</article>