Hi all,
This is my first post here. I have the following code to display posts list in category wise. But I see additional bullet in the final HTML page.
{% for category in site.categories %}
{% for posts in category %}
<ul>
{% for post in posts %}
<li><a class="post-link" href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endfor %}
{% endfor %}
And it give the following output. Assuming I have only two categories. . . post1 . post4 . . post3 . post2
I don’t know why an extra bullet is showing at the starting of post list for each category.
<ul>
{% for category in site.categories %}
{% for posts in category[1] %}
<li><a class="post-link" href="{{ posts.url }}">{{ posts.title }}</a></li>
{% endfor %}
{% endfor %}
</ul>
category[1] contains all the post data, category[0] contains the category name I think. Not sure exactly what is contained in just category - I think it is a key:value pair and without specifying what you want - the key or the value - you get nothing?.