Ryan Wang 👍 建议使用 https://docs.halo.run/developer-guide/theme/finder-apis/post#listbycategorypagesizecategoryname 配合主题设置,https://docs.halo.run/developer-guide/theme/settings
huanhaik Ryan Wang 👍 <p th:text="${categoryItem.spec.slug}"></p> <div th:replace="~{macro/post-list :: post-list(${'/categories/'+categoryItem.spec.slug})}" </div> 上面一句正确打印了我需要的分类的slug,下面这句依然显示了全部文章。这是什么原因呢