Merge pull request #129 from ykzts/exclude-archived
exclude archived repositories
This commit is contained in:
commit
746e8c2bb1
2 changed files with 6 additions and 1 deletions
|
@ -23,6 +23,7 @@ projects:
|
|||
# - stars
|
||||
limit: 9
|
||||
exclude:
|
||||
archived: false
|
||||
forks: true
|
||||
projects:
|
||||
# - repo-name
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue