Simple Grid Listing

Preview

<Set query=loop_query type=post orderby=date order=desc />
<If loop query=loop_query>
  <ul class="tt-loop grid-cols grid-md-col-3 grid-sm-col-2">
    <Loop query=loop_query>
      <li class="tt-item tt-item--card {Field post_class}">
        <div class="tt-item__wrapper">
          <If field=image>
            <div class="tt-item__image">
              <img src="{Field image_url size=large}" class="{Field image_post_class}" alt="{Field image_alt}" srcset="{Field image_srcset size=large}" sizes="{Field image_sizes size=large}">
            </div>
            <Else />
            <div class="tt-item__image--placeholder"></div>
          </If>
          <div class="tt-item__content">
            <If loop type=taxonomy_term taxonomy=category post=current exclude=1>
              <div class="tt-item__terms">
                <Loop type=taxonomy_term taxonomy=category post=current exclude=1 count=1>
                  <a href="{Field url}" class="tt-item__terms__item">
                    <Field title />
                  </a>
                </Loop>
              </div>
            </If>
            <a href="{Field url}" class="tt-item__title"><h3 class="tt-item__title__text"><Field title /></h3></a>
            <div class="tt-item__description"><Field excerpt /></div>
          </div>
          <div class="tt-item__footer">
            <div class="tt-item__meta">
              <div class="tt-item__meta__item tt-item__author">
                <div class="tt-item__author__avatar"><Field author_avatar size=50 /></div>
                <div class="tt-item__author__name">By <Field author_full_name /></div>
              </div>
              on
              <span class="tt-item__meta__item tt-item__date"><Field publish_date date_format="F j, Y" /></span>
            </div>
          </div>
        </div>
      </li>
    </Loop>
  </ul>
  <Else />
  Nothing found
</If>