fix: category badge before project title

This commit is contained in:
juanatsap
2026-05-04 14:53:01 +01:00
parent ea5e0c5aab
commit 075a58efe4
2 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -202,7 +202,7 @@
font-size: 0.6em;
padding: 0.2em 0.5em;
border-radius: 3px;
margin-left: 0.5em;
margin-right: 0.4em;
vertical-align: middle;
letter-spacing: 0.5px;
}
+8 -9
View File
@@ -23,7 +23,14 @@
{{end}}
</div>
<div class="project-content">
<strong>
{{if eq .Category "cli"}}<span class="category-badge category-cli">CLI</span>
{{else if eq .Category "app"}}<span class="category-badge category-app">APP</span>
{{else if eq .Category "web"}}<span class="category-badge category-web">WEB</span>
{{else if eq .Category "webapp"}}<span class="category-badge category-webapp">WEB</span>
{{else if eq .Category "plugin"}}<span class="category-badge category-plugin">PLG</span>
{{else if eq .Category "sdk"}}<span class="category-badge category-sdk">SDK</span>
{{else if eq .Category "contrib"}}<span class="category-badge category-contrib">OSS</span>
{{end}}<strong>
{{if .ProjectName}}
{{if .URL}}<a href="{{.URL}}" target="_blank" rel="noopener noreferrer">{{.ProjectName}}</a>{{else}}{{.ProjectName}}{{end}}{{if .ProjectDesc}} - {{.ProjectDesc}}{{end}}
{{else}}
@@ -33,14 +40,6 @@
{{if .Current}}<span class="live-badge"><iconify-icon icon="mdi:wifi" width="14" height="14"></iconify-icon>LIVE</span>{{end}}
{{if .GitRepoUrl}}<a href="{{.GitRepoUrl}}/stargazers" target="_blank" rel="noopener noreferrer" class="github-stars-badge"><iconify-icon icon="mdi:github" width="14" height="14"></iconify-icon>{{if .Stars}}{{.Stars}}{{end}}<iconify-icon icon="mdi:star" width="12" height="12"></iconify-icon></a>{{end}}
{{if .MaintainedBy}}<span class="maintained-badge">{{$.UI.Sections.MaintainedBy}} {{.MaintainedBy}}</span>{{end}}
{{if eq .Category "cli"}}<span class="category-badge category-cli">CLI</span>
{{else if eq .Category "app"}}<span class="category-badge category-app">APP</span>
{{else if eq .Category "web"}}<span class="category-badge category-web">WEB</span>
{{else if eq .Category "webapp"}}<span class="category-badge category-webapp">WEB</span>
{{else if eq .Category "plugin"}}<span class="category-badge category-plugin">PLG</span>
{{else if eq .Category "sdk"}}<span class="category-badge category-sdk">SDK</span>
{{else if eq .Category "contrib"}}<span class="category-badge category-contrib">OSS</span>
{{end}}
<br>
<small>{{if .StartDate}}{{.StartDate}}{{if .Current}}{{if .DynamicDate}} / {{.DynamicDate}}{{else}} / {{$.UI.Sections.Present}}{{end}}{{end}}{{end}} - ({{.Location}})</small>