{{#if link}}
<a href="#" class="c-card__grid c-card__link">
  {{else}}
  <div class="c-card__grid">
    {{/if}}

    {{#if hed}}
    <div class="c-card__content">
      {{#if topics}}
      <div class="c-card__topics">
        {{#each topics}}
        <span class="c-card__topics__item">{{this}}</span>
        {{/each}}
      </div>
      {{/if}}

      {{#if hedLink}}
      <div class="c-card__hed{{#ifCond isNew "==" true}} c-card__hed--new{{/ifCond}}">
        <a href="#" class="c-card__hed-text c-card__hed-text--link">{{ hed }}</a>
        {{#ifCond iconPosition "!=" "dek"}}
        {{#if indicatorIcon}} {{> indicator-icon icon=indicatorIcon }} {{/if}}
        {{#if videoIcon}}
        <span class="c-card__video-time">
          {{> indicator-icon icon=videoIcon }}
          <span class="c-card__video-duration">{{videoTime}}</span>
        </span>
        {{/if}}
        {{/ifCond}}
      </div>
      {{ else }}
      <div class="c-card__hed{{#ifCond isNew "==" true}} c-card__hed--new{{/ifCond}}">
        <div class="c-card__hed-text">{{ hed }}</div>
        {{#ifCond iconPosition "!=" "dek"}}
        {{#if indicatorIcon}} {{> indicator-icon icon=indicatorIcon }} {{/if}}
        {{#if videoIcon}}
        <span class="c-card__video-time">
          {{> indicator-icon icon=videoIcon }}
          <span class="c-card__video-duration">{{videoTime}}</span>
        </span>
        {{/if}}
        {{/ifCond}}
      </div>
      {{/if}}

      {{#ifCond cardModifier "==" "alpha"}}
      {{#if label}}
      <span
        class="c-card__label{{#if label.display}} c-card__label--{{label.display}}{{/if}}{{#if advContent}} c-card__label--muted{{/if}}">
        {{#if label.labelText}}
        {{label.labelText}}
        {{/if}}
      </span>
      {{/if}}

      {{#if meta}}
      <div class="c-card__meta c-card__meta--inline">
        {{#if meta.authors~}}
        <div class="c-card__meta__authors">
          {{#each meta.authors}}
          <span class="c-card__author">
            {{~#ifCond ../meta.authors.length ">" 1~}} {{~#if @last~}} and {{this~}}
            {{~else ifSecondLast @index ../meta.authors.length~}} {{~this~}}
            {{~else~}} {{~this}}, {{~/if~}} {{~else~}} {{~this~}} {{~/ifCond~}}
          </span>
          {{/each}}
        </div>
        {{/if}}
      </div>
      {{/if}}
      {{/ifCond}}

      {{#if meta}}
      <div class="c-card__meta">
        {{#ifCond cardModifier "!=" "alpha"}}
        {{#if label}}
        <span
          class="c-card__label{{#if label.display}} c-card__label--{{label.display}}{{/if}}{{#if advContent}} c-card__label--muted{{/if}}">
          {{#if label.labelText}}
          {{label.labelText}}
          {{/if}}
        </span>
        {{/if}}
        {{#if meta.authors~}}
        {{#ifCond cardModifier "!=" "alpha"}}
        <div class="c-card__meta__authors c-card__meta--inline">
          {{else}}
          <div class="c-card__meta__authors">
            {{/ifCond}}
            {{#each meta.authors}}
            <span class="c-card__author">
              {{~#ifCond ../meta.authors.length ">" 1~}} {{~#if @last~}} and {{this~}}
              {{~else ifSecondLast @index ../meta.authors.length~}} {{~this~}}
              {{~else~}} {{~this}}, {{~/if~}} {{~else~}} {{~this~}} {{~/ifCond~}}
            </span>
            {{/each}}
          </div>
          {{/if}}
          {{/ifCond}}
          {{#if meta.timestamp}}{{> timestamp timestamp="2 hours ago" }}{{/if}} {{#if updated}}
          <time class="c-timestamp c-timestamp--updated" datetime="2016-08-09T20:33:02+00:00">Updated</time>{{/if}}
        </div>
        {{/if}}
      </div>
      {{/if}}

      {{#if image}}
      <div class="c-card__media">
        {{#if imgSrc}}
        <img class="c-image" src="{{ basePath }}/assets/patterns/images/{{imgSrc}}" alt="{{ hed }}">
        <div class="c-image-container">
          <img class="c-image" src="{{ basePath }}/assets/patterns/images/{{imgSrc}}" alt="{{ hed }}">
        </div>
        {{else}}
        <img class="c-image" src="http://placehold.it/300x200" alt="{{ hed }}">
        <div class="c-image-container">
          <img class="c-image" src="http://placehold.it/300x200" alt="{{ hed }}">
        </div>
        {{/if}}
      </div>
      {{/if}}

      {{#if link}}
</a>
{{else}}
</div>
{{/if}}
