Merge pull request #129 from ykzts/exclude-archived
exclude archived repositories
This commit is contained in:
Коммит
746e8c2bb1
|
@ -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 %}
|
||||
|
|
Загрузка…
Ссылка в новой задаче