Skip to content

Commit

Permalink
2024-04-04 20:34:38
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiKimera committed Apr 4, 2024
1 parent e5d6ec5 commit bc7ba12
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions layouts/shortcodes/gh-org.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h5 class="card-title">
<div class="mt-auto">
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.org.repos") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($org.html_url) }}"
<a class="btn btn-light btn-sm" href="{{ ($org.html_url) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.org.repos") }}'>
<i class="fas fa-book fa-fw me-1"></i>
Expand All @@ -63,7 +63,7 @@ <h5 class="card-title">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.org.blog") }}'>
{{ $url := (urls.Parse ($org.blog)) }}{{ $scheme := "http://" }}
{{ if ($url.Scheme) }}{{ $scheme = "" }}{{ end }}
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($scheme) }}{{ ($org.blog) }}"
<a class="btn btn-light btn-sm" href="{{ ($scheme) }}{{ ($org.blog) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.org.blog") }}'>
<i class="fas fa-globe fa-fw"></i>
Expand All @@ -72,7 +72,7 @@ <h5 class="card-title">
{{ end }}
{{ if ($org.twitter_username) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.org.twitter") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="https://twitter.com/{{ ($org.twitter_username) }}"
<a class="btn btn-light btn-sm" href="https://twitter.com/{{ ($org.twitter_username) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.org.twitter") }}'>
<i class="fab fa-twitter fa-fw"></i>
Expand All @@ -81,7 +81,7 @@ <h5 class="card-title">
{{ end }}
{{ if ($org.email) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.org.email") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="mailto:{{ ($org.email) }}"
<a class="btn btn-light btn-sm" href="mailto:{{ ($org.email) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.org.email") }}'>
<i class="fas fa-envelope-open-text fa-fw"></i>
Expand Down
8 changes: 4 additions & 4 deletions layouts/shortcodes/gh-repo.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@ <h6 class="card-subtitle mb-2 text-body-secondary gh-repo-owner"></h6>
<div class="mt-auto">
<div class="row row-cols-auto g-2 mt-3">
<div class="col">
<div class="btn btn-light btn-sm text-body-secondary"
<div class="btn btn-light btn-sm"
data-bs-tooltip data-bs-title='{{ (i18n "sc.github.repo.language") }}'>
<i class="fas fa-code fa-fw me-1"></i>
<span class="gh-repo-language">#</span>
</div>
</div>
<div class="col">
<div class="btn btn-light btn-sm text-body-secondary"
<div class="btn btn-light btn-sm"
data-bs-tooltip data-bs-title='{{ (i18n "sc.github.repo.subscribers") }}'>
<i class="fas fa-eye fa-fw me-1"></i>
<span class="gh-repo-subscribers">#</span>
</div>
</div>
<div class="col">
<div class="btn btn-light btn-sm text-body-secondary"
<div class="btn btn-light btn-sm"
data-bs-tooltip data-bs-title='{{ (i18n "sc.github.repo.stargazers") }}'>
<i class="fas fa-star fa-fw me-1"></i>
<span class="gh-repo-stars">#</span>
</div>
</div>
<div class="col">
<div class="btn btn-light btn-sm text-body-secondary"
<div class="btn btn-light btn-sm"
data-bs-tooltip data-bs-title='{{ (i18n "sc.github.repo.forks") }}'>
<i class="fas fa-code-branch fa-fw me-1"></i>
<span class="gh-repo-forks">#</span>
Expand Down
8 changes: 4 additions & 4 deletions layouts/shortcodes/gh-user-org.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h5 class="card-title">
<div class="mt-auto">
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.org.repos") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($org.html_url) }}"
<a class="btn btn-light btn-sm" href="{{ ($org.html_url) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.org.repos") }}'>
<i class="fas fa-book fa-fw me-1"></i>
Expand All @@ -65,7 +65,7 @@ <h5 class="card-title">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.org.blog") }}'>
{{ $url := (urls.Parse ($org.blog)) }}{{ $scheme := "http://" }}
{{ if ($url.Scheme) }}{{ $scheme = "" }}{{ end }}
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($scheme) }}{{ ($org.blog) }}"
<a class="btn btn-light btn-sm" href="{{ ($scheme) }}{{ ($org.blog) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.org.blog") }}'>
<i class="fas fa-globe fa-fw"></i>
Expand All @@ -74,7 +74,7 @@ <h5 class="card-title">
{{ end }}
{{ if ($org.twitter_username) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.org.twitter") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="https://twitter.com/{{ ($org.twitter_username) }}"
<a class="btn btn-light btn-sm" href="https://twitter.com/{{ ($org.twitter_username) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.org.twitter") }}'>
<i class="fab fa-twitter fa-fw"></i>
Expand All @@ -83,7 +83,7 @@ <h5 class="card-title">
{{ end }}
{{ if ($org.email) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.org.email") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="mailto:{{ ($org.email) }}"
<a class="btn btn-light btn-sm" href="mailto:{{ ($org.email) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.org.email") }}'>
<i class="fas fa-envelope-open-text fa-fw"></i>
Expand Down
6 changes: 3 additions & 3 deletions layouts/shortcodes/gh-user-repo.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ <h6 class="card-subtitle mb-2 text-body-secondary">
<div class="mt-auto">
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.repo.stargazers") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ (.html_url) }}/stargazers"
<a class="btn btn-light btn-sm" href="{{ (.html_url) }}/stargazers"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.repo.stargazers") }}'>
<i class="fas fa-star fa-fw me-1"></i>
{{ (.stargazers_count) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.repo.forks") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ (.html_url) }}/network/members"
<a class="btn btn-light btn-sm" href="{{ (.html_url) }}/network/members"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.repo.forks") }}'>
<i class="fas fa-code-branch fa-fw me-1"></i>
Expand All @@ -75,7 +75,7 @@ <h6 class="card-subtitle mb-2 text-body-secondary">
{{ if (.license) }}
{{ $license := (getJSON (.license.url) "?ts=" ($ts) ($headers)) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.repo.license") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($license.html_url) }}"
<a class="btn btn-light btn-sm" href="{{ ($license.html_url) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.github.user.repo.license") }}'>
<i class="fas fa-copyright fa-fw me-1"></i>
Expand Down
6 changes: 3 additions & 3 deletions layouts/shortcodes/gh-user.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ <h5 class="card-title">
<div class="mt-auto">
<div class="row row-cols-auto g-2 mt-3">
<div class="col">
<div class="btn btn-light btn-sm text-body-secondary"
<div class="btn btn-light btn-sm"
data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.repos") }}'>
<i class="fas fa-book fa-fw me-1"></i>
<span class="gh-user-repos">#</span>
</div>
</div>
<div class="col">
<div class="btn btn-light btn-sm text-body-secondary"
<div class="btn btn-light btn-sm"
data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.followers") }}'>
<i class="fas fa-user-friends fa-fw me-1"></i>
<span class="gh-user-followers">#</span>
</div>
</div>
<div class="col">
<div class="btn btn-light btn-sm text-body-secondary"
<div class="btn btn-light btn-sm"
data-bs-tooltip data-bs-title='{{ (i18n "sc.github.user.following") }}'>
<i class="fas fa-user-check fa-fw me-1"></i>
<span class="gh-user-following">#</span>
Expand Down
8 changes: 4 additions & 4 deletions layouts/shortcodes/gl-repo.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,23 @@ <h6 class="card-subtitle mb-2 text-body-secondary">
<div class="mt-auto">
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.repo.issues") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($project.web_url) }}/-/issues"
<a class="btn btn-light btn-sm" href="{{ ($project.web_url) }}/-/issues"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.repo.issues") }}'>
<i class="fas fa-info-circle fa-fw me-1"></i>
{{ ($project.open_issues_count) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.repo.starrers") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($project.web_url) }}/-/starrers"
<a class="btn btn-light btn-sm" href="{{ ($project.web_url) }}/-/starrers"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.repo.starrers") }}'>
<i class="fas fa-star fa-fw me-1"></i>
{{ ($project.star_count) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.repo.forks") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($project.web_url) }}/-/forks"
<a class="btn btn-light btn-sm" href="{{ ($project.web_url) }}/-/forks"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.repo.forks") }}'>
<i class="fas fa-code-branch fa-fw me-1"></i>
Expand All @@ -82,7 +82,7 @@ <h6 class="card-subtitle mb-2 text-body-secondary">
</div>
{{ if ($project.license_url) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.repo.license") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ $project.license.html_url }}"
<a class="btn btn-light btn-sm" href="{{ $project.license.html_url }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.repo.license") }}'>
<i class="fas fa-copyright fa-fw me-1"></i>
Expand Down
10 changes: 5 additions & 5 deletions layouts/shortcodes/gl-user.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ <h5 class="card-title">
<div class="mt-auto">
<div class="row row-cols-auto g-2 mt-3">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.user.followers") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($user.web_url) }}/followers"
<a class="btn btn-light btn-sm" href="{{ ($user.web_url) }}/followers"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.user.followers") }}'>
<i class="fas fa-user-friends fa-fw me-1"></i>
{{ ($user.followers) }}
</a>
</div>
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.user.following") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($user.web_url) }}/following"
<a class="btn btn-light btn-sm" href="{{ ($user.web_url) }}/following"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.user.following") }}'>
<i class="fas fa-user-check fa-fw me-1"></i>
Expand All @@ -71,7 +71,7 @@ <h5 class="card-title">
</div>
{{ if ($user.linkedin) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.user.linkedin") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="https://linkedin.com/in/{{ ($user.linkedin) }}"
<a class="btn btn-light btn-sm" href="https://linkedin.com/in/{{ ($user.linkedin) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.user.linkedin") }}'>
<i class="fab fa-linkedin-in fa-fw"></i>
Expand All @@ -80,7 +80,7 @@ <h5 class="card-title">
{{ end }}
{{ if ($user.twitter) }}
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.user.twitter") }}'>
<a class="btn btn-light btn-sm text-body-secondary" href="https://twitter.com/{{ ($user.twitter) }}"
<a class="btn btn-light btn-sm" href="https://twitter.com/{{ ($user.twitter) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.user.twitter") }}'>
<i class="fab fa-twitter fa-fw"></i>
Expand All @@ -91,7 +91,7 @@ <h5 class="card-title">
<div class="col" data-bs-tooltip data-bs-title='{{ (i18n "sc.gitlab.user.site") }}'>
{{ $url := (urls.Parse ($user.website_url)) }}{{ $scheme := "http://" }}
{{ if ($url.Scheme) }}{{ $scheme = "" }}{{ end }}
<a class="btn btn-light btn-sm text-body-secondary" href="{{ ($scheme) }}{{ ($user.website_url) }}"
<a class="btn btn-light btn-sm" href="{{ ($scheme) }}{{ ($user.website_url) }}"
target="_blank" rel="noopener nofollow"
role="button" aria-label='{{ (i18n "sc.gitlab.user.site") }}'>
<i class="fas fa-globe fa-fw"></i>
Expand Down

0 comments on commit bc7ba12

Please sign in to comment.