Hello! I had this minor issue on my website and I saw few other people using this template and having the same issue. **Brief** if two repo's in the same row has different number of lines for the descriptions, heights of the cards will not be the same if we don't force the number of lines to be displayed. **Solution** By looking at [This issue](https://github.com/anuraghazra/github-readme-stats/issues/2900) I could see that they solved it by adding an new option, `description_lines_count`. This was used on the API request in order to fix the issue. --- ## Issue reproduced:  --- ## Issue fixed after the commit: 
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
{% 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 %}
|
|
|
|
{% if site.data.repositories.repo_description_lines_max %}
|
|
{% assign max_lines = site.data.repositories.repo_description_lines_max %}
|
|
{% else %}
|
|
{% assign max_lines = 2 %}
|
|
{% 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[0] }}&repo={{ repo_url[1] }}&theme={{ site.repo_theme_light }}&show_owner={{ show_owner }}&description_lines_count={{ max_lines }}"
|
|
>
|
|
<img
|
|
class="repo-img-dark w-100"
|
|
alt="{{ include.repository }}"
|
|
src="https://github-readme-stats.vercel.app/api/pin/?username={{ repo_url[0] }}&repo={{ repo_url[1] }}&theme={{ site.repo_theme_dark }}&show_owner={{ show_owner }}&description_lines_count={{ max_lines }}"
|
|
>
|
|
</a>
|
|
</div>
|