~xdavidwu/xdavidwu.link

f86829c05a79152a1efa9b0d34a10b8d9d190305 — xdavidwu 3 years ago dc76ac9
remove unnessessary div
M _layouts/categories.html => _layouts/categories.html +3 -5
@@ 31,11 31,9 @@ layout: archive_subtitle
    {% if category[1].size == i %}
      <section id="{{ category[0] | slugify | downcase }}" class="taxonomy__section">
        <h2 class="archive__subtitle">{{ category[0] }}</h2>
        <div class="entries-{{ entries_layout }}">
          {% for post in category.last %}
            {% include archive-single.html type=entries_layout %}
          {% endfor %}
        </div>
        {% for post in category.last %}
          {% include archive-single.html type=entries_layout %}
        {% endfor %}
        <a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
      </section>
    {% endif %}

M _layouts/category.html => _layouts/category.html +1 -3
@@ 5,6 5,4 @@ layout: archive
{{ content }}

{% assign entries_layout = page.entries_layout | default: 'list' %}
<div class="entries-{{ entries_layout }}">
  {% include posts-category.html taxonomy=page.taxonomy type=entries_layout %}
</div>
{% include posts-category.html taxonomy=page.taxonomy type=entries_layout %}

M _layouts/collection.html => _layouts/collection.html +1 -3
@@ 5,6 5,4 @@ layout: archive
{{ content }}

{% assign entries_layout = page.entries_layout | default: 'list' %}
<div class="entries-{{ entries_layout }}">
  {% include documents-collection.html collection=page.collection sort_by=page.sort_by sort_order=page.sort_order type=entries_layout %}
</div>
{% include documents-collection.html collection=page.collection sort_by=page.sort_by sort_order=page.sort_order type=entries_layout %}

M _layouts/home.html => _layouts/home.html +3 -5
@@ 13,10 13,8 @@ layout: archive_notitle
{% endif %}

{% assign entries_layout = page.entries_layout | default: 'list' %}
<div class="entries-{{ entries_layout }}">
  {% for post in posts %}
    {% include archive-single.html type=entries_layout %}
  {% endfor %}
</div>
{% for post in posts %}
  {% include archive-single.html type=entries_layout %}
{% endfor %}

{% include paginator.html %}

M _layouts/posts.html => _layouts/posts.html +3 -5
@@ 20,11 20,9 @@ layout: archive
{% for year in postsByYear %}
  <section id="{{ year.name }}" class="taxonomy__section">
    <h2 class="archive__subtitle">{{ year.name }}</h2>
    <div class="entries-{{ entries_layout }}">
      {% for post in year.items %}
        {% include archive-single.html type=entries_layout %}
      {% endfor %}
    </div>
    {% for post in year.items %}
      {% include archive-single.html type=entries_layout %}
    {% endfor %}
    <a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
  </section>
{% endfor %}

M _layouts/tag.html => _layouts/tag.html +1 -3
@@ 5,6 5,4 @@ layout: archive
{{ content }}

{% assign entries_layout = page.entries_layout | default: 'list' %}
<div class="entries-{{ entries_layout }}">
  {% include posts-tag.html taxonomy=page.taxonomy type=entries_layout %}
</div>
{% include posts-tag.html taxonomy=page.taxonomy type=entries_layout %}

M _layouts/tags.html => _layouts/tags.html +3 -5
@@ 31,11 31,9 @@ layout: archive_subtitle
    {% if tag[1].size == i %}
      <section id="{{ tag[0] | slugify | downcase }}" class="taxonomy__section">
        <h2 class="archive__subtitle">{{ tag[0] }}</h2>
        <div class="entries-{{ entries_layout }}">
          {% for post in tag.last %}
            {% include archive-single.html type=entries_layout %}
          {% endfor %}
        </div>
        {% for post in tag.last %}
          {% include archive-single.html type=entries_layout %}
        {% endfor %}
        <a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} &uarr;</a>
      </section>
    {% endif %}