ColorlibHQ / Fashe

Free Shopify ecommerce theme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Limiting the number of blog posts featured on home page

yeehou opened this issue · comments

Hi, thanks for the great work. I'm trying to limit the number of blog posts featured on the homepage to 3 only. I've put in the new line of code under snippets ({% for article in blogs[section.settings.blog].articles: limit 3 %}). But I get this error on the homepage - Liquid syntax error (sections/blog.liquid line 9): Expected end_of_string but found colon in "article in blogs[section.settings.blog].articles: limit 3"

Thanks.

you can use thisȘ
{% for article in blog.articles limit: section.settings.post_limit %}