Sha256: ea9384bd0db584815eb9dbefa04eb54837ff9fb528b5d129d79d28ca50656099

Contents?: true

Size: 884 Bytes

Versions: 1

Compression:

Stored size: 884 Bytes

Contents

{% assign writer = page.id | remove_first: ".html" | split: "/" | slice: -1 | join: '' %}
{% for cat in site.categories %}
  {% assign w = cat[0] | downcase %}
  {% if writer == w %}
    {% assign posts = cat[1] %}
    {% assign author = cat[0] | replace: "_", " " %}
    {% break %}
  {% endif %}
{% endfor %}

<!doctype html>
<html lang="en">
  {% include header.html %}
  <body>
    {% include logo.html image=site.acn.logo.alt_image size=site.acn.logo.alt_size title=author %}

    {% if content %}
    <article class="{{ page.style | default: 'center' }}" >
      {% if page.image %}
        <img src="{{ page.image }}" alt="{{ author }}" width="{{ page.size }}" />
      {% endif %}
      {{ content }}
    </article>
    {% endif %}

    {% if posts.size and author %}
      {% include grid.html posts=posts %}
    {% endif %}

    {% include footer.html %}
  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
askclass-news-theme-0.2.2 _layouts/writer.html