Sha256: 7ced80edd16fe652d5ec32070fb4c39d179b1e5f53205150a840146f1d685ac4

Contents?: true

Size: 1.53 KB

Versions: 2

Compression:

Stored size: 1.53 KB

Contents

---
layout: default
---
  <main id="site-main">
    <article>
      <header>
        <h1>{{ page.title }}</h1>
      </header>
      <div class="post-meta">
        {%- assign date_format = site.date_format | default: '%b %-d, %Y' -%}
        {%- assign authordata = '' | split:'@' %}
        {%- for author in site.authors %}
          {%- if page.authors contains author.username or author.username == page.authors %}
            {%- if page.authors.first %}
              {%- if page.authors.first == author.username %}
        <img src="/{{ author.picture }}" alt="{{ author.name }}" class="author-image" />
              {%- endif %}
            {%- elsif forloop.first and author.picture %}
        <img src="/{{ author.picture }}" alt="{{ author.name }}" class="author-image" />
            {%- endif %}
            {%- capture data -%}
            <a href="{{ site.url }}{{ site.baseurl }}/authors/{{ author.username }}/">{{ author.name }}</a>
            {%- endcapture %}
            {%- assign authordata = authordata | push: data %}
          {%- endif %}
        {%- endfor %}
        <div class="author-info">
          <span>{{ 'post' | t: 'written_by' }} {{ authordata | array_to_sentence_string }}
            <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished"></time>
              {{ page.date | date: date_format }}
            </time>
          </span>
        </div>
      </div>
      <div>
          {{ content }}
      </div>
    </article>
    </main>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fenton-jekyll-boilerplate-0.0.15 _layouts/post.html
fenton-jekyll-boilerplate-0.0.14 _layouts/post.html