Skip to content

Commit ef079a2

Browse files
committed
fix post list style
1 parent dce7959 commit ef079a2

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

_layouts/post-list.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,32 +41,32 @@ <h5 style="margin-bottom:var(--wp--preset--spacing--x-small);" class="wp-block-p
4141
href="{{ post.url | relative_url }}" target="_self">{{ post.title }}</a></h5>
4242

4343

44-
<div
45-
class="wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-10 wp-block-group-is-layout-flex">
44+
<div class="wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8 wp-block-group-is-layout-flex">
4645
<div class="wp-block-post-author-name has-x-small-font-size">{{ site.data["authors"][post.author].name }}</div>
47-
48-
<hr
49-
class="wp-block-separator has-text-color has-highlight-color has-alpha-channel-opacity has-highlight-background-color has-background is-style-default wp-container-content-3">
50-
46+
<hr class="wp-block-separator has-text-color has-highlight-color has-alpha-channel-opacity has-highlight-background-color has-background is-style-default wp-container-content-3">
5147
<div class="wp-block-post-date">{{ post.date | date: "%B %-d, %Y" }}</div>
5248
</div>
5349
</div>
5450

5551
</li>
5652
{% endfor %}
5753
</ul>
58-
</div>
5954

55+
<hr class="wp-block-separator has-text-color has-outline-color has-alpha-channel-opacity has-outline-background-color has-background is-style-wide"/>
6056

61-
{% if paginator.total_pages > 1 %}
62-
<div class="paging-buttons">
63-
{% if paginator.next_page %}
64-
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older Posts</a></div>
65-
{% endif %}
66-
{% if paginator.previous_page %}
67-
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer Posts</a></div>
68-
{% endif %}
69-
</div>
70-
{% endif %}
57+
<div class="wp-block-group is-layout-flow wp-block-group-is-layout-flow" style="padding:20px 20px 0 20px">
58+
{% if paginator.total_pages > 1 %}
59+
<div class="paging-buttons">
60+
{% if paginator.next_page %}
61+
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older Posts</a></div>
62+
{% endif %}
63+
{% if paginator.previous_page %}
64+
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer Posts</a></div>
65+
{% endif %}
66+
</div>
67+
{% endif %}
68+
69+
{{ content }}
70+
</div>
7171

72-
{{ content }}
72+
</div>

0 commit comments

Comments
 (0)