Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author安红豆 <55517494+ormissia@users.noreply.github.com>2021-03-13 18:37:47 +0300
committerGitHub <noreply@github.com>2021-03-13 18:37:47 +0300
commit4ef34a8f63d9afa3a4dab180f1b850518ab43ce3 (patch)
treea298b9f155c00a6931b19856e8b5f565e1a972ce /layouts/partials/cards
parent88895c50c2b7c390a454ff376f5f9083f163df8a (diff)
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>
Diffstat (limited to 'layouts/partials/cards')
-rw-r--r--layouts/partials/cards/project.html50
1 files changed, 32 insertions, 18 deletions
diff --git a/layouts/partials/cards/project.html b/layouts/partials/cards/project.html
index 6b4f959..81d3fcd 100644
--- a/layouts/partials/cards/project.html
+++ b/layouts/partials/cards/project.html
@@ -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>