From f86829c05a79152a1efa9b0d34a10b8d9d190305 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Wed, 23 Sep 2020 09:30:31 +0800 Subject: [PATCH] remove unnessessary div --- _layouts/categories.html | 8 +++----- _layouts/category.html | 4 +--- _layouts/collection.html | 4 +--- _layouts/home.html | 8 +++----- _layouts/posts.html | 8 +++----- _layouts/tag.html | 4 +--- _layouts/tags.html | 8 +++----- 7 files changed, 15 insertions(+), 29 deletions(-) diff --git a/_layouts/categories.html b/_layouts/categories.html index 9502c1e..18a1cd3 100644 --- a/_layouts/categories.html +++ b/_layouts/categories.html @@ -31,11 +31,9 @@ layout: archive_subtitle {% if category[1].size == i %}

{{ category[0] }}

-
- {% for post in category.last %} - {% include archive-single.html type=entries_layout %} - {% endfor %} -
+ {% for post in category.last %} + {% include archive-single.html type=entries_layout %} + {% endfor %} {{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑
{% endif %} diff --git a/_layouts/category.html b/_layouts/category.html index b281c85..8f3db9e 100644 --- a/_layouts/category.html +++ b/_layouts/category.html @@ -5,6 +5,4 @@ layout: archive {{ content }} {% assign entries_layout = page.entries_layout | default: 'list' %} -
- {% include posts-category.html taxonomy=page.taxonomy type=entries_layout %} -
+{% include posts-category.html taxonomy=page.taxonomy type=entries_layout %} diff --git a/_layouts/collection.html b/_layouts/collection.html index d23d0c7..fb7edeb 100644 --- a/_layouts/collection.html +++ b/_layouts/collection.html @@ -5,6 +5,4 @@ layout: archive {{ content }} {% assign entries_layout = page.entries_layout | default: 'list' %} -
- {% include documents-collection.html collection=page.collection sort_by=page.sort_by sort_order=page.sort_order type=entries_layout %} -
+{% include documents-collection.html collection=page.collection sort_by=page.sort_by sort_order=page.sort_order type=entries_layout %} diff --git a/_layouts/home.html b/_layouts/home.html index a4ac632..299ddb6 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -13,10 +13,8 @@ layout: archive_notitle {% endif %} {% assign entries_layout = page.entries_layout | default: 'list' %} -
- {% for post in posts %} - {% include archive-single.html type=entries_layout %} - {% endfor %} -
+{% for post in posts %} + {% include archive-single.html type=entries_layout %} +{% endfor %} {% include paginator.html %} diff --git a/_layouts/posts.html b/_layouts/posts.html index 13fc707..7ac20eb 100644 --- a/_layouts/posts.html +++ b/_layouts/posts.html @@ -20,11 +20,9 @@ layout: archive {% for year in postsByYear %}

{{ year.name }}

-
- {% for post in year.items %} - {% include archive-single.html type=entries_layout %} - {% endfor %} -
+ {% for post in year.items %} + {% include archive-single.html type=entries_layout %} + {% endfor %} {{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑
{% endfor %} diff --git a/_layouts/tag.html b/_layouts/tag.html index 8b1c188..fde51f1 100644 --- a/_layouts/tag.html +++ b/_layouts/tag.html @@ -5,6 +5,4 @@ layout: archive {{ content }} {% assign entries_layout = page.entries_layout | default: 'list' %} -
- {% include posts-tag.html taxonomy=page.taxonomy type=entries_layout %} -
+{% include posts-tag.html taxonomy=page.taxonomy type=entries_layout %} diff --git a/_layouts/tags.html b/_layouts/tags.html index 0b311b8..be0a342 100644 --- a/_layouts/tags.html +++ b/_layouts/tags.html @@ -31,11 +31,9 @@ layout: archive_subtitle {% if tag[1].size == i %}

{{ tag[0] }}

-
- {% for post in tag.last %} - {% include archive-single.html type=entries_layout %} - {% endfor %} -
+ {% for post in tag.last %} + {% include archive-single.html type=entries_layout %} + {% endfor %} {{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑
{% endif %} -- 2.43.0