Jekyll display posts by category

前端 未结 6 623
遇见更好的自我
遇见更好的自我 2020-12-07 09:28

scratching my head over this - help much appreciated.

I want to display a list of all my Jekyll posts, organised by category. I know Line 3 isn\'t correct but I can

6条回答
  •  太阳男子
    2020-12-07 09:52

    fyi, if anyone wants to just list the posts in one category, this works (differs from above example as the category returns a list of posts...

    Posts in category "basic" are:

      {% for post in site.categories.basic %} {% if post.url %}
    • {{ post.title }}
    • {% endif %} {% endfor %}

提交回复
热议问题