this repo has no description
1{{ define "user/fragments/repoCard" }} 2 {{ $root := index . 0 }} 3 {{ $repo := index . 1 }} 4 {{ $fullName := index . 2 }} 5 6 {{ with $repo }} 7 <div 8 class="py-4 px-6 gap-2 flex flex-col drop-shadow-sm rounded bg-white dark:bg-gray-800"> 9 <div class="font-medium dark:text-white flex items-center"> 10 {{ if .Source }} 11 {{ i "git-fork" "w-4 h-4 mr-1.5 shrink-0" }} 12 {{ else }} 13 {{ i "book-marked" "w-4 h-4 mr-1.5 shrink-0" }} 14 {{ end }} 15 16 {{ $repoOwner := resolve .Did }} 17 {{- if $fullName -}} 18 <a href="/{{ $repoOwner }}/{{ .Name }}"> 19 {{ $repoOwner }}/{{ .Name }} 20 </a> 21 {{- else -}} 22 <a href="/{{ $repoOwner }}/{{ .Name }}">{{ .Name }}</a> 23 {{- end -}} 24 </div> 25 {{ with .Description }} 26 <div class="text-gray-600 dark:text-gray-300 text-sm"> 27 {{ . }} 28 </div> 29 {{ end }} 30 31 {{ if .RepoStats }} 32 {{ block "repoStats" .RepoStats }}{{ end }} 33 {{ end }} 34 </div> 35 {{ end }} 36{{ end }} 37 38{{ define "repoStats" }} 39 <div class="text-gray-400 text-sm font-mono inline-flex gap-4 mt-auto"> 40 {{ with .Language }} 41 <div class="flex gap-2 items-center text-sm"> 42 <div 43 class="size-2 rounded-full" 44 style="background: radial-gradient(circle at 35% 35%, color-mix(in srgb, {{ langColor . }} 70%, white), {{ langColor . }} 30%, color-mix(in srgb, {{ langColor . }} 85%, black));"></div> 45 <span>{{ . }}</span> 46 </div> 47 {{ end }} 48 {{ with .StarCount }} 49 <div class="flex gap-1 items-center text-sm"> 50 {{ i "star" "w-3 h-3 fill-current" }} 51 <span>{{ . }}</span> 52 </div> 53 {{ end }} 54 {{ with .IssueCount.Open }} 55 <div class="flex gap-1 items-center text-sm"> 56 {{ i "circle-dot" "w-3 h-3" }} 57 <span>{{ . }}</span> 58 </div> 59 {{ end }} 60 {{ with .PullCount.Open }} 61 <div class="flex gap-1 items-center text-sm"> 62 {{ i "git-pull-request" "w-3 h-3" }} 63 <span>{{ . }}</span> 64 </div> 65 {{ end }} 66 </div> 67{{ end }}