Actualizar '_includes/post_list.html'
This commit is contained in:
parent
37a360feb0
commit
895aa2efed
1 changed files with 10 additions and 10 deletions
|
@ -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…
Reference in a new issue