Skip to content
This repository was archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
exclude archived repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
ykzts committed Apr 29, 2019
1 parent 6c846f3 commit 46d5aa6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ projects:
# - stars
limit: 9
exclude:
archived: false
forks: true
projects:
# - repo-name
Expand Down
6 changes: 5 additions & 1 deletion _includes/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ <h2 {% if site.style == 'dark' %}class="text-white"{% endif %}>My Projects</h2>
{% 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 %}
Expand Down

0 comments on commit 46d5aa6

Please sign in to comment.