blog.trnck.dev
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #12 from AungMyoKyaw/feat/sort-repos

feat: sort repo by pushed date

authored by

Brandon Rosage and committed by
GitHub
8eaf09c3 c934c47c

+2 -1
+2 -1
_includes/projects.html
··· 1 1 <h2 {% if site.style == 'dark' %}class="text-white"{% endif %}>My Projects</h2> 2 2 <p class="f4 mb-4 {% if site.style == 'dark' %}text-white{% else %}text-gray{% endif %}">GitHub repositories that I've built.</p> 3 3 <div class="d-sm-flex flex-wrap gutter-condensed mb-4"> 4 - {% for repository in site.github.public_repositories limit: 9 %} 4 + {% assign public_repositories = site.github.public_repositories | sort: 'pushed_at' | reverse %} 5 + {% for repository in public_repositories limit: 9 %} 5 6 <div class="col-sm-6 col-md-12 col-lg-6 col-xl-4 mb-3"> 6 7 {% include repo-card.html %} 7 8 </div>