~xdavidwu/xdavidwu.link

af8bf97fae274887893f7275bea36301939aeb85 — xdavidwu 2 years ago 7fd2889
archive-single: remove one layer of unneeded div
1 files changed, 15 insertions(+), 17 deletions(-)

M _includes/archive-single.html
M _includes/archive-single.html => _includes/archive-single.html +15 -17
@@ 16,21 16,19 @@
  {% assign desc_truncate = 160 %}
{% endif %}

<div class="{{ include.type | default: 'list' }}__item">
  <article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">
    {% if include.type == "grid" and teaser %}
      <div class="archive__item-teaser">
        <img src="{{ teaser | relative_url }}" alt="">
      </div>
<article class="{{ include.type | default: 'list' }}__item archive__item" itemscope itemtype="https://schema.org/CreativeWork">
  {% if include.type == "grid" and teaser %}
    <div class="archive__item-teaser">
      <img src="{{ teaser | relative_url }}" alt="">
    </div>
  {% endif %}
  <h2 class="archive__item-title no_toc" itemprop="headline">
    {% if post.link %}
      <a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}"><i class="fa fa-fw fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
    {% else %}
      <a href="{{ post.url | relative_url }}">{{ title }}</a>
    {% endif %}
    <h2 class="archive__item-title no_toc" itemprop="headline">
      {% if post.link %}
        <a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}"><i class="fa fa-fw fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
      {% else %}
        <a href="{{ post.url | relative_url }}">{{ title }}</a>
      {% endif %}
    </h2>
    {% include page__meta.html type=include.type %}
    {% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: desc_truncate }}</p>{% endif %}
  </article>
</div>
  </h2>
  {% include page__meta.html type=include.type %}
  {% if post.excerpt %}<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: desc_truncate }}</p>{% endif %}
</article>