Sha256: 456d276052d0b7a26d8127eef2540f1932dbb8ba15a359b2c68ab62c6dd407bc

Contents?: true

Size: 1.24 KB

Versions: 7

Compression:

Stored size: 1.24 KB

Contents

---
layout: base
---

{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}

<section class="hero {% unless page.image %} no-image{% endunless %}"{% if page.image %} style="background-image: linear-gradient(to top, #000, transparent), url({{ page.image }});"{% endif %}>
  <div class="hero-body">
    <h1 class="title is-1">{{ page.title }}</h1>

    {% if page.description %}
      <p class="subtitle is-3">{{ page.description }}</p>
    {% endif %}

    {% if page.layout == 'post' %}
      {% capture authors %}
      {% for id in page.authors %}, {% assign name = site.data['people'][id].first-name | default: id %}<a href="/people#{{ id }}">{{ name }}</a>{% endfor %}
      {% endcapture %}
      <p class="subtitle is-5">
          <time datetime="{{ page.date | date: date_format }}">{{ page.date | date: date_format }}</time>
          - {{ authors | remove_first: ', ' | strip }}
      </p>
    {% endif %}
  </div>

  {% if page.photos %}
  <div class="hero-foot">
    <p class="credit"><a href="{{ page.photos.link }}">{{ page.photos.name }}</a> ({{ page.photos.license }})</p>
  </div>
  {% endif %}
</section>

<section class="section">
  <div class="container content {{ layout.css }} {{ page.css }}">
    {{ content }}
  </div>
</section>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ols-theme-0.8.0 _layouts/default.html
ols-theme-0.7.0 _layouts/default.html
ols-theme-0.6.0 _layouts/default.html
ols-theme-0.5.0 _layouts/default.html
ols-theme-0.3.0 _layouts/default.html
ols-theme-0.2.0 _layouts/default.html
ols-theme-0.1.0 _layouts/default.html