2016-10-23 4 views
0

프로젝트의 경우 github 페이지에 지킬이있는 모든 포크를 나열하려고하는데 this guide을 찾았습니다. 필자는 프로파일에서 프로젝트 대신 repo 포크를 나열하도록 가이드를 편집하려고했습니다. 이것은 아마 쉬운 수정이지만 포크는 내 프로필에 나타나지 않았다. 포크가 나타나게하려면 {% for repo in site.github.public_repositories limit:28 %} 대신 {% for repo in site.github.public_repositories.forks limit:28 %}을 시도했습니다.지킬이있는 포크를 나열 하시겠습니까?

감사합니다!

My full code

답변

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 %} 
관련 문제