Sha256: 88023bb46a11c80d8a2bfe7529f70e5a3b051d48c493e7fcd5c0468e9996de96

Contents?: true

Size: 1.78 KB

Versions: 4

Compression:

Stored size: 1.78 KB

Contents

---
layout: base
---
{%- assign date_format = site.termina-plex.date_format | default: "%d %b %Y" -%}

<article class="postWrapper">
  <header class="postHeader">
    <h1>{{ page.title | escape }}</h1>
  </header>

  <section class="postMetadata">
    <dl>
      {%- if page.author and page.author.size > 0 -%}
      <dt>authors</dt>
      <dd>
        {{- page.author | join: ", " -}}
      </dd>
      {%- endif -%}
      {%- if page.date -%}
      <dt>published</dt>
      <dd>
        <time class="postDate" datetime="{{ page.date | date: '%Y-%m-%d' }}">{{ page.date | date: date_format }}</time>
      </dd>
      {%- endif -%}
      {%- if page.categories and page.categories.size > 0 -%}
      <dt>categories</dt>
      <dd>
        {%- for category in page.categories -%}
          {%- capture category_name -%}{{ category }}{%- endcapture -%}
          <a href="{{ site.baseurl | append:'/category/' | append:category_name }}">#{{ category }}</a>&nbsp;
        {%- endfor -%}
      </dd>
      {%- endif -%}
      {%- if page.tags and page.tags.size > 0 -%}
      <dt>tags</dt>
      <dd>
        {%- for tag in page.tags -%}
          {%- capture tag_name -%}{{ tag }}{%- endcapture -%}
          <a href="{{ site.baseurl | append:'/tag/' | append:tag_name }}">#{{ tag }}</a>&nbsp;
        {%- endfor -%}
      </dd>
      {%- endif -%}
    </dl>
  </section>

  <div>
    {{ content }}
  </div>
</article>

{%- if page.previous or page.next -%}
<div class="pageNavFooter">
  {%- if page.previous -%}
  <div class="pagePrevious">
    <a href="{{ page.previous.url | relative_url }}">{{ page.previous.title }}</a>
  </div>
  {%- endif -%}

  {%- if page.next -%}
  <div class="pageNext">
    <a href="{{ page.next.url | relative_url }}">{{ page.next.title }}</a>
  </div>
  {%- endif -%}
</div>
{%- endif -%}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
termina-plex-0.1.6 _layouts/post.html
termina-plex-0.1.5.2 _layouts/post.html
termina-plex-0.1.5 _layouts/post.html
termina-plex-0.1.4 _layouts/post.html