smithtimmytim/brightlycolored.org

View on GitHub
_layouts/post.html

Summary

Maintainability
Test Coverage
---
layout: default
custom_css_class: single
---

<article
  class="post format-{% if page.custom_type %}{{ page.custom_type }}{% endif %} p-body h-entry"
>
  <header class="post__header">
    {% include post-author.html %}
    
    {% if page.link_url %}
      <h1 class="p-name">
        <a href="{{ page.link_url }}">{{ page.title | smartify | widont }}</a>
      </h1>
    {% else %}
      <h1 class="p-name">{{ page.title | smartify | widont }}</h1>
      {% if page.subtitle %}
        <h2 class="post__subtitle">{{ page.subtitle | smartify | widont }}</h2>
      {% endif %} 
    {% endif %}

    {% if page.review.type %}
      {% include star-rating.html rating=page.review.rating %}
    {% endif %}
  </header>

  {% if page.is_rss_only %}
  <aside class="post__rss-only">
    <p>This article is top secret! <a href="/rss-club/">Read more <span class="caps">RSS</span> Club posts.</a></p>
  </aside>
  {% endif %}

  <div class="e-content">{{ content | improve }}</div>

  <footer class="post__footer">
    {% include letterboxd-link.html %}
    {% if page.author != 'timsmith' %}
      {% include author-credit.html %}
    {% endif %}
    {% include tags.html %}
    <section class="card card--light card--large">
      <h2>Brightly Colored Weekly</h2>
      {% include newsletter-form.html text="Get more posts like this delivered straight to your inbox." %}
    </section>
    {% include related-posts.html %}
  </footer>
</article>