* 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 a9dd4d5d43d212676e1c1dba8ec8086c7fdb7cd7. * add last line * fix * github only * fix * Add instructions * Add `README.md` instructions * Add `nav_order`
15 lines
804 B
HTML
15 lines
804 B
HTML
{% 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>
|