Browse Source

Actualizar '_includes/post_list.html'

main
Echedey López Romero 1 month ago
parent
commit
895aa2efed
  1. 20
      _includes/post_list.html

20
_includes/post_list.html

@ -1,14 +1,14 @@
{% if include.category %}
{% assign posts = site.categories[include.category] %}
{% else %}
{% assign posts = site.posts %}
{% endif %}
{%-if include.category-%}
{%-assign posts = site.categories[include.category]-%}
{%-else-%}
{%-assign posts = site.posts-%}
{%-endif-%}
{% if include.limit and posts.size > include.limit %}
{% assign limit_exceeded = true %}
{% else %}
{% assign limit_exceeded = false %}
{% endif %}
{%-if include.limit and posts.size > include.limit-%}
{%-assign limit_exceeded = true-%}
{%-else-%}
{%-assign limit_exceeded = false-%}
{%-endif-%}
{%- if posts.size > 0 -%}
<ul>

Loading…
Cancel
Save