Skip to content

Commit

Permalink
Update tool-card.html
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck authored Jun 25, 2024
1 parent ba30d0c commit b60656c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions theme/_includes/tool-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
https://github.com/anchore/syft/
https://github.com/anchore/syft.git
{%endcomment%}
{% assign repo = tool.repoUrl | replace:'http://','https://' | replace:'https://github.com/','' | replace: '.git','' | rtrim:'/' %}
{% assign repo = tool.repoUrl | replace:'http://','https://' | remove:'https://github.com/' | remove:'.git' %}
<img src="https://img.shields.io/github/forks/{{repo}}?style=social&label=Forks" alt="#forks"/>&nbsp;
<img src="https://img.shields.io/github/stars/{{repo}}?style=social&label=Stars" alt="#starts"/>
{% elsif tool.repoUrl contains '://gist.github.com/' %}
Expand All @@ -29,7 +29,7 @@
https://gist.github.com/a0f874ee0a8af9a56a0e887631fc53d1/
https://gist.github.com/a0f874ee0a8af9a56a0e887631fc53d1.git
{%endcomment%}
{% assign gistID = tool.repoUrl | replace:'http://','https://' | replace:'https://gist.github.com/','' | replace: '.git','' | rtrim:'/' | split:'/' | last %}
{% assign gistID = tool.repoUrl | replace:'http://','https://' | remove:'https://gist.github.com/' | remove:'.git' | split:'/' | last %}
<img src="https://img.shields.io/github/gist/stars/{{gistID}}?style=social&label=Stars" alt="#stars"/>
{% elsif tool.repoUrl contains '://gitlab.com/' %}
{%comment%}
Expand All @@ -38,7 +38,7 @@
https://gitlab.com/expliot_framework/expliot/
https://gitlab.com/expliot_framework/expliot.git
{%endcomment%}
{% assign repo = tool.repoUrl | replace:'http://','https://' | replace:'https://gitlab.com/','' | replace: '.git','' | rtrim:'/' %}
{% assign repo = tool.repoUrl | replace:'http://','https://' | remove:'https://gitlab.com/' | remove:'.git' %}
<img src="https://img.shields.io/gitlab/forks/{{repo|url_encode}}?style=social&label=Forks" alt="#forks"/>&nbsp;
<img src="https://img.shields.io/gitlab/stars/{{repo|url_encode}}?style=social&label=Stars" alt="#starts"/>
{% elsif tool.repoUrl contains '://bitbucket.org/' %}
Expand Down

0 comments on commit b60656c

Please sign in to comment.