与杰基尔列出叉子?

时间:2016-10-23 14:08:39

标签: github jekyll liquid github-pages

对于一个项目,我试图使用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

1 个答案:

答案 0 :(得分:1)

{% 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 %}
相关问题