Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
stevespringett committed Jul 2, 2024
2 parents c2eb56c + 1a30ecd commit 188b143
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions theme/_includes/tool-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
https://github.com/anchore/syft.git
{%endcomment%}
{% assign repo = tool.repoUrl | regex_replace:'^https?://github.com/','' | regex_replace:'(.git|/)$','' %}
<img src="https://img.shields.io/github/forks/{{repo}}?style=social&label=Forks&logo=github" alt="#forks"/>&nbsp;
<img src="https://img.shields.io/github/stars/{{repo}}?style=social&label=Stars&logo=github" alt="#stars"/>
<img src="https://img.shields.io/github/forks/{{repo}}?style=social&label=Forks&logo=-" alt="#forks"/>&nbsp;
<img src="https://img.shields.io/github/stars/{{repo}}?style=social&label=Stars&logo=-" alt="#stars"/>
{% elsif tool.repoUrl contains '://gist.github.com/' %}
{%comment%}
repo holds the "gistID" as last path-part segment, for eg:
Expand All @@ -30,7 +30,7 @@
https://gist.github.com/a0f874ee0a8af9a56a0e887631fc53d1.git
{%endcomment%}
{% assign gistID = tool.repoUrl | regex_replace:'^https?://gist.github.com/','' | regex_replace:'(.git|/)$','' | split:'/' | last %}
<img src="https://img.shields.io/github/gist/stars/{{gistID}}?style=social&label=Stars&logo=github" alt="#stars"/>
<img src="https://img.shields.io/github/gist/stars/{{gistID}}?style=social&label=Stars&logo=-" alt="#stars"/>
{% elsif tool.repoUrl contains '://gitlab.com/' %}
{%comment%}
repo holds the "org/repo" name, for eg:
Expand All @@ -39,8 +39,8 @@
https://gitlab.com/expliot_framework/expliot.git
{%endcomment%}
{% assign repo = tool.repoUrl | regex_replace:'^https?://gitlab.com/','' | regex_replace:'(.git|/)$','' | url_encode %}
<img src="https://img.shields.io/gitlab/forks/{{repo}}?style=social&label=Forks&logo=gitlab" alt="#forks"/>&nbsp;
<img src="https://img.shields.io/gitlab/stars/{{repo}}?style=social&label=Stars&logo=gitlab" alt="#stars"/>&nbsp;
<img src="https://img.shields.io/gitlab/forks/{{repo}}?style=social&label=Forks&logo=-" alt="#forks"/>&nbsp;
<img src="https://img.shields.io/gitlab/stars/{{repo}}?style=social&label=Stars&logo=-" alt="#stars"/>&nbsp;
{% elsif tool.repoUrl contains '://bitbucket.org/' %}
{%comment%}noting we can do for this repo hoster.{%endcomment%}
{% endif %}
Expand Down

0 comments on commit 188b143

Please sign in to comment.