18F/18f.gsa.gov

View on GitHub
_includes/post.html

Summary

Maintainability
Test Coverage
{% assign post_date = include.date | default: post.date %} {% assign post_title
= include.title | default: post.title %} {% assign post_excerpt =
include.excerpt | default: post.excerpt %} {% assign post_url = include.url |
default: post.url %} {% assign hide_date = include.hide_date | default: false %}

<li class="post tablet:grid-col-4">
  <article>
    {% if hide_date == true %}
    <p class="post-date">{{ post_date | date: "%B %-d, %Y" }}</p>
    {% endif %}
    <h3 class="h4 posts_feature-heading">
      <a class="post-link" href="{{ post.url | prepend: site.baseurl }}"
        >{{ post_title }}</a
      >
    </h3>
    <p class="post-excerpt usa-prose">{{ post_excerpt }}</p>
    <p>
      <a
        class="link-arrow-right post-link-continue_reading"
        href="{{ post_url | prepend: site.baseurl }}"
      >
        Read more
        <span class="usa-sr-only">about {{ post_title }}</span>
        {% include svg/icons/arrow-right.svg %}
      </a>
    </p>
  </article>
</li>