-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for repositories (#760)
* Add support for github repo cards * add support for dark theme * Add support for custom theme * repositories * fix * make it simpler * spcaing * responsive fix * adds support for usernames * make it modular * fix * show icons * cache_seconds * fix * Revert "cache_seconds" This reverts commit a9dd4d5. * add last line * fix * github only * fix * Add instructions * Add `README.md` instructions * Add `nav_order`
- Loading branch information
1 parent
99b14c4
commit f618757
Showing
11 changed files
with
125 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
github_users: | ||
- torvalds | ||
- alshedivat | ||
|
||
github_repos: | ||
- alshedivat/al-folio | ||
- twbs/bootstrap | ||
- jekyll/jekyll | ||
- jquery/jquery | ||
- FortAwesome/Font-Awesome | ||
- jpswalsh/academicons | ||
- mathjax/MathJax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% assign repo_url = include.repository | split: '/' %} | ||
|
||
{% if site.data.repositories.github_users contains repo_url.first %} | ||
{% assign show_owner = false %} | ||
{% else %} | ||
{% assign show_owner = true %} | ||
{% endif %} | ||
|
||
<div class="repo p-2 text-center"> | ||
<a href="https://github.com/{{ include.repository }}"> | ||
<img class="repo-img-light w-100" alt="{{ include.repository }}" src="https://github-readme-stats.vercel.app/api/pin/?username={{ repo_url.first }}&repo={{ repo_url.last }}&theme={{ site.repo_theme_light }}&show_owner={{ show_owner }}"> | ||
<img class="repo-img-dark w-100" alt="{{ include.repository }}" src="https://github-readme-stats.vercel.app/api/pin/?username={{ repo_url.first }}&repo={{ repo_url.last }}&theme={{ site.repo_theme_dark }}&show_owner={{ show_owner }}"> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="repo p-2 text-center"> | ||
<a href="https://github.com/{{ include.username }}"> | ||
<img class="repo-img-light w-100" alt="{{ include.username }}" src="https://github-readme-stats.vercel.app/api/?username={{ include.username }}&theme={{ site.repo_theme_light }}&show_icons=true"> | ||
<img class="repo-img-dark w-100" alt="{{ include.username }}" src="https://github-readme-stats.vercel.app/api/?username={{ include.username }}&theme={{ site.repo_theme_dark }}&show_icons=true"> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ layout: cv | |
permalink: /cv/ | ||
title: cv | ||
nav: true | ||
nav_order: 3 | ||
nav_order: 4 | ||
cv_pdf: example_pdf.pdf | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
layout: page | ||
permalink: /repositories/ | ||
title: repositories | ||
description: Edit the `_data/repositories.yml` and change the `github_users` and `github_repos` lists to include your own GitHub profile and repositories. | ||
nav: true | ||
nav_order: 3 | ||
--- | ||
|
||
## GitHub users | ||
|
||
{% if site.data.repositories.github_users %} | ||
<div class="repositories d-flex flex-wrap flex-md-row flex-column justify-content-between align-items-center"> | ||
{% for user in site.data.repositories.github_users %} | ||
{% include repository/repo_user.html username=user %} | ||
{% endfor %} | ||
</div> | ||
{% endif %} | ||
|
||
--- | ||
|
||
## GitHub Repositories | ||
|
||
{% if site.data.repositories.github_repos %} | ||
<div class="repositories d-flex flex-wrap flex-md-row flex-column justify-content-between align-items-center"> | ||
{% for repo in site.data.repositories.github_repos %} | ||
{% include repository/repo.html repository=repo %} | ||
{% endfor %} | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters