List all Blogs

nummi
Shopify Partner
7 0 0

Is there a way to list all blogs? For example:

 

  <ul>
    {% for blog in blogs  %}
     <li>{{ blog.title }}</li>
    {% endfor %}
  </ul>

 

Thanks!

0 Likes
YoungAdult
Explorer
53 1 7

Hi @Atique,

 

Is this one category only? cause I have 14 subcategories and I want to show it on the homepage but I do not know how to put that in one section all categories on the homepage of my website

 

0 Likes
AuralFetish
Tourist
17 0 1
{% assign cats = "top-stories,news,entertainment,whaterver-your-blog-is-called" | split: ',' %}
{% for cat in cats %}
	{% for article in blogs[cat].articles %}
    		{{ article.title }}
  	{% endfor %} 
{% endfor %}