chore: replace include w/render

This commit is contained in:
Cory Dransfeldt 2024-02-09 09:50:30 -08:00
parent bb111f93e0
commit b92d49babf
No known key found for this signature in database
3 changed files with 6 additions and 4 deletions

View file

@ -6,7 +6,9 @@ pagination:
reverse: true
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 %}
{% if post.data.published %}
<article class="h-entry">
@ -22,4 +24,4 @@ pagination:
</article>
{% endif %}
{% endfor %}
{% include "partials/paginator.liquid" %}
{% render "partials/paginator.liquid", pagination:pagination %}

View file

@ -33,4 +33,4 @@ image: /assets/img/ogi/links.jpg
{% endif -%}
</article>
{% endfor %}
{% include "partials/paginator.liquid" %}
{% render "partials/paginator.liquid", pagination:pagination %}