如何列出 Jekyll 中没有类别的所有帖子?

How to list all posts without a category in Jekyll?

如何列出 Jekyll 博客中没有指定类别的所有帖子?

如何列出所有 in 描述的给定类别 here

{% for post in site.posts %}
  {% if post.categories contains 'postcategory' %}
    <h1>Do nothing</h1>
  {% else %}
    <h2>{{ post.title }}</h2>
  {% endif %}
{% endfor %}