Skip to content

Commit c434c7a

Browse files
committed
Moved latest_posts reference
Signed-off-by: George Araújo <[email protected]>
1 parent c93285e commit c434c7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_includes/latest_posts.liquid

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<div class="news">
2-
{% if site.latest_posts != blank %}
2+
{% if page.latest_posts != blank %}
33
{% assign latest_posts_size = site.posts | size %}
44
<div
55
class="table-responsive"
6-
{% if site.latest_posts.scrollable and latest_posts_size > 3 %}
6+
{% if page.latest_posts.scrollable and latest_posts_size > 3 %}
77
style="max-height: 60vw"
88
{% endif %}
99
>
1010
<table class="table table-sm table-borderless">
1111
{% assign latest_posts = site.posts %}
12-
{% if site.latest_posts.limit %}
13-
{% assign latest_posts_limit = site.latest_posts.limit %}
12+
{% if page.latest_posts.limit %}
13+
{% assign latest_posts_limit = page.latest_posts.limit %}
1414
{% else %}
1515
{% assign latest_posts_limit = latest_posts_size %}
1616
{% endif %}

0 commit comments

Comments
 (0)