Merge pull request #129 from ykzts/exclude-archived

exclude archived repositories
This commit is contained in:
Brandon Rosage 2019-05-20 16:02:52 -05:00 committed by GitHub
commit 746e8c2bb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -23,6 +23,7 @@ projects:
# - stars
limit: 9
exclude:
archived: false
forks: true
projects:
# - repo-name

View file

@ -7,7 +7,11 @@
{% assign sort_order = 'pushed_at' %}
{% endif %}
{% if site.projects.exclude.forks %}
{% if site.projects.exclude.archived && site.projects.exclude.forks %}
{% assign filtered_repos = site.github.public_repositories | where:'archived', false | where:'fork', false | sort: sort_order | reverse %}
{% elsif site.projects.exclude.archived %}
{% assign filtered_repos = site.github.public_repositories | where:'archived', false | sort: sort_order | reverse %}
{% elsif site.projects.exclude.forks %}
{% assign filtered_repos = site.github.public_repositories | where:'fork', false | sort: sort_order | reverse %}
{% else %}
{% assign filtered_repos = site.github.public_repositories | sort: sort_order | reverse %}