Sha256: 11d89af83f3d402c97c4fa937ad3d3f47f50f1a5a405f5ddf14a81380dd15955

Contents?: true

Size: 617 Bytes

Versions: 4

Compression:

Stored size: 617 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.logo.alt_image size=site.logo.alt_size title=author %}

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
askclass-news-theme-0.2.1 _layouts/writer.html
askclass-news-theme-0.2.0 _layouts/writer.html
askclass-news-theme-0.1.1 _layouts/writer.html
askclass-news-theme-0.1.0 _layouts/writer.html