Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Jekyll,我有以下变量:{{ page.categories | 类别链接}}
我希望每个结果(每个类别)都包含在一个 li 标签中。我怎么能那样做?
这是一种将类别显示为无序列表的方法:
<ul> {% for category in page.categories %} <li>{{ category }}</li> {% endfor %} </ul>