diff options
Diffstat (limited to '_includes/views/segments.html')
-rw-r--r-- | _includes/views/segments.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/_includes/views/segments.html b/_includes/views/segments.html index 2c92dc1..0cf9414 100644 --- a/_includes/views/segments.html +++ b/_includes/views/segments.html @@ -13,7 +13,13 @@ {% assign items = site.posts | where: field, key %} {% for item in items %} {% if item != nil %} - <li> {% include views/post-item.html %} </li> + {%- assign post_item_class = "" -%} + {%- if item.top -%} + {%- assign post_item_class = "top-post" -%} + {%- endif -%} + <li class="{{ post_item_class }}"> + {%- include views/post-item.html -%} + </li> {% endif %} {% endfor %} {% endfor %} |