用 Jekyll 列出叉子?

List forks with Jekyll?

对于一个项目,我试图使用我发现的 this guide 在 github 页上列出所有带有 jekyll 的分支。我试图编辑指南,以便它列出 repo 的分支而不是我个人资料中的项目。这可能是一个简单的修复,但叉子没有出现在我的个人资料中。为了让分叉出现,我尝试使用 {% for repo in site.github.public_repositories.forks limit:28 %} 而不是 {% for repo in site.github.public_repositories limit:28 %}.

谢谢!

My full code

{% assign forked_repos = site.github.public_repositories | where: "fork", "true" %}

{% for repo in forked_repos limit:28 %}
    <a href = "{{repo.html_url}}">{{repo.name}}</a><br>
{% endfor %}