diff --git a/_config.yml b/_config.yml index fe0952f..34187b8 100644 --- a/_config.yml +++ b/_config.yml @@ -23,6 +23,7 @@ projects: # - stars limit: 9 exclude: + archived: false forks: true projects: # - repo-name diff --git a/_includes/projects.html b/_includes/projects.html index c80b591..b3263ef 100644 --- a/_includes/projects.html +++ b/_includes/projects.html @@ -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 %}