chore: replace include w/render
This commit is contained in:
parent
bb111f93e0
commit
b92d49babf
3 changed files with 6 additions and 4 deletions
|
@ -6,7 +6,9 @@ pagination:
|
||||||
reverse: true
|
reverse: true
|
||||||
alias: posts
|
alias: posts
|
||||||
---
|
---
|
||||||
{% if pagination.pageNumber == 0 %}{% include "partials/now/topper.liquid" status:status %}{% endif %}
|
{% if pagination.pageNumber == 0 %}
|
||||||
|
{% render "partials/now/topper.liquid" status:status %}
|
||||||
|
{% endif %}
|
||||||
{% for post in pagination.items %}
|
{% for post in pagination.items %}
|
||||||
{% if post.data.published %}
|
{% if post.data.published %}
|
||||||
<article class="h-entry">
|
<article class="h-entry">
|
||||||
|
@ -22,4 +24,4 @@ pagination:
|
||||||
</article>
|
</article>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% include "partials/paginator.liquid" %}
|
{% render "partials/paginator.liquid", pagination:pagination %}
|
|
@ -33,4 +33,4 @@ image: /assets/img/ogi/links.jpg
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% include "partials/paginator.liquid" %}
|
{% render "partials/paginator.liquid", pagination:pagination %}
|
Reference in a new issue