Skip to content

add star badge and remove manual star update #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions .github/workflows/update-projects.yml

This file was deleted.

19 changes: 11 additions & 8 deletions layouts/partials/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
<div class="description">
<h3 class="name"><a href="{{ .item.url }}">{{ .item.name }}</a></h3>
<p class="stars">
<img class="github" width="16" src="/static/images/github.svg" alt="GitHub stars" />
<span aria-label="Stars">
<span>★ <small>{{ .item.stars }}</small></span>
</span>
<span aria-label="Language">{{ .item.language }}</span>
<a href="{{ .item.url }}" style="text-decoration: none;">
<img src="https://img.shields.io/github/stars/{{ .item.github_uri }}?style=flat-square&label=⭐%20Stars" alt="GitHub stars" />
</a>
{{ if .item.language }}
<img src="https://img.shields.io/github/languages/top/{{ .item.github_uri }}?style=flat-square" alt="Language: {{ .item.language }}" />
{{ end }}
</p>
<p>{{ .item.description }}</p>
<div class="project-meta">
<span aria-label="License">{{ .item.license }}</span>
<span>Last updated on {{ time.Format "January 2, 2006" .item.updated_at }}</span>
{{ if .item.license }}
<img src="https://img.shields.io/github/license/{{ .item.github_uri }}?style=flat-square" alt="License: {{ .item.license }}" />
{{ end }}
<img src="https://img.shields.io/github/last-commit/{{ .item.github_uri }}?style=flat-square" alt="Last commit" />
</div>
</div>
<div class="logo">
Expand All @@ -21,4 +24,4 @@ <h3 class="name"><a href="{{ .item.url }}">{{ .item.name }}</a></h3>
{{ end }}
</div>
</li>
{{ end }}
{{ end }}
17 changes: 16 additions & 1 deletion static/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,15 @@ ul.flat li {
margin-bottom: 15px;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.projects .stars img {
height: 20px;
vertical-align: middle;
}
.projects .stars iframe {
vertical-align: middle;
}
.projects .stars .github {
margin-right: 5px;
Expand Down Expand Up @@ -422,7 +431,13 @@ ul.flat li {
font-size: 0.875rem;
line-height: 1.2rem;
display: flex;
justify-content: space-between;
justify-content: flex-start;
align-items: center;
gap: 10px;
}
.projects .project-meta img {
height: 20px;
vertical-align: middle;
}
.projects .project-meta span {
display: block;
Expand Down