forked from github/personal-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprojects.html
23 lines (21 loc) · 1013 Bytes
/
projects.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<h2 {% if site.style == 'dark' %}class="text-white"{% endif %}>My Projects</h2>
<p class="f4 mb-4 {% if site.style == 'dark' %}text-white{% else %}text-gray{% endif %}">GitHub repositories that I've built.</p>
<div class="d-sm-flex flex-wrap gutter-condensed mb-4">
{% if site.projects.sort_by == 'stars' %}
{% assign sort_order = 'stargazers_count', 'last' %}
{% else %}
{% assign sort_order = 'pushed_at' %}
{% endif %}
{% if 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 %}
{% endif %}
{% for repository in filtered_repos | limit: site.projects.limit %}
{% unless site.projects.exclude.projects contains repository.name %}
<div class="col-sm-6 col-md-12 col-lg-6 col-xl-4 mb-3">
{% include repo-card.html %}
</div>
{% endunless %}
{% endfor %}
</div>