Sha256: 943ff22b5bee798b21dd85a301407d6d006b99b025b7fa9c03fc3f9ea56f14f2

Contents?: true

Size: 1.57 KB

Versions: 4

Compression:

Stored size: 1.57 KB

Contents

---
layout: index
---

{% 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="{% link people.md %}#{{ 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">
    {% if page.photos.name or page.photos.url or page.photos.license %}
    <p class="credit">{% if page.photos.url %}<a href="{{ page.photos.url }}">{% if page.photos.name %}{{ page.photos.name }}{% else %}{{ page.photos.url }}{% endif %}</a>{% elsif page.photos.name %}}{{ page.photos.name }}{% endif %} {% if page.photos.license %}({{ page.photos.license }}){% endif %}</p>
    {% endif %}
  </div>
  {% endif %}
</section>

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ols-theme-1.0.2 _layouts/default.html
ols-theme-1.0.1 _layouts/default.html
ols-theme-1.0.0 _layouts/default.html
ols-theme-0.9.0 _layouts/default.html