exclude archived repositories
This commit is contained in:
parent
6c846f385b
commit
46d5aa6e26
2 changed files with 6 additions and 1 deletions
|
@ -23,6 +23,7 @@ projects:
|
||||||
# - stars
|
# - stars
|
||||||
limit: 9
|
limit: 9
|
||||||
exclude:
|
exclude:
|
||||||
|
archived: false
|
||||||
forks: true
|
forks: true
|
||||||
projects:
|
projects:
|
||||||
# - repo-name
|
# - repo-name
|
||||||
|
|
|
@ -7,7 +7,11 @@
|
||||||
{% assign sort_order = 'pushed_at' %}
|
{% assign sort_order = 'pushed_at' %}
|
||||||
{% endif %}
|
{% 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 %}
|
{% assign filtered_repos = site.github.public_repositories | where:'fork', false | sort: sort_order | reverse %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign filtered_repos = site.github.public_repositories | sort: sort_order | reverse %}
|
{% assign filtered_repos = site.github.public_repositories | sort: sort_order | reverse %}
|
||||||
|
|
Loading…
Reference in a new issue