Display project card technology tags (#243)

* Display project card technology tags

* Fix tag CSS

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
安红豆 2021-03-13 23:37:47 +08:00 committed by GitHub
parent 88895c50c2
commit 4ef34a8f63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 56 additions and 22 deletions

View file

@ -26,25 +26,39 @@
</a>
<div class="card-body text-justify pt-1 pb-1">
<p>{{ .summary | markdownify }}</p>
<span class="float-right">
{{ if .repo }}
<a
class="github-button-inactive"
href="{{ .repo }}"
data-icon="octicon-standard"
data-show-count="true"
aria-label="Star {{ .name }}"
>Star</a
>
{{ else if .url }}
<a
class="btn btn-outline-info btn-sm mb-2"
href="{{ .url }}"
target="#"
>Details</a
>
<!-- Display project card technology tags -->
<div class="project-card-footer">
{{ if .tags }}
<div class="project-tags-holder">
{{ range $index,$tag:= .tags }}
<span class="badge btn-info">
{{ $tag }}
</span>
{{ end }}
</div>
{{ end }}
</span>
<div class="project-btn-holder">
{{ if .repo }}
<a
class="github-button-inactive project-btn"
href="{{ .repo }}"
data-icon="octicon-standard"
data-show-count="true"
aria-label="Star {{ .name }}"
>Star</a
>
{{ else if .url }}
<span>
<a
class="btn btn-outline-info btn-sm"
href="{{ .url }}"
target="#"
>Details</a
>
</span>
{{ end }}
</div>
</div>
</div>
</div>
</div>