this repo has no description
1{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }}
2
3{{ define "content" }}
4 <section id="repo-header" class="mb-4 py-2 px-6">
5 <div class="flex gap-3">
6 <p class="text-lg">
7 <a href="/{{ .RepoInfo.OwnerWithAt }}">{{ .RepoInfo.OwnerWithAt }}</a>
8 <span class="select-none">/</span>
9 <a href="/{{ .RepoInfo.FullName }}" class="font-bold">{{ .RepoInfo.Name }}</a>
10 </p>
11 {{ template "fragments/star" .RepoInfo }}
12 </div>
13 <span>
14 {{ if .RepoInfo.Description }}
15 {{ .RepoInfo.Description }}
16 {{ else }}
17 <span class="italic">this repo has no description</span>
18 {{ end }}
19 </span>
20 </section>
21 <section id="repo-links" class="min-h-screen flex flex-col drop-shadow-sm">
22 <nav class="w-full mx-auto ml-4">
23 <div class="flex z-60">
24 {{ $activeTabStyles := "-mb-px bg-white" }}
25 {{ $tabs := .RepoInfo.GetTabs }}
26 {{ $tabmeta := .RepoInfo.TabMetadata }}
27 {{ range $item := $tabs }}
28 {{ $key := index $item 0 }}
29 {{ $value := index $item 1 }}
30 {{ $meta := index $tabmeta $key }}
31 <a
32 href="/{{ $.RepoInfo.FullName }}{{ $value }}"
33 class="relative -mr-px group no-underline hover:no-underline"
34 hx-boost="true"
35 >
36 <div
37 class="px-4 py-1 mr-1 text-black min-w-[80px] text-center relative rounded-t
38 {{ if eq $.Active $key }}
39 {{ $activeTabStyles }}
40 {{ else }}
41 group-hover:bg-gray-200
42 {{ end }}
43 "
44 >
45 {{ $key }}
46 {{ if not (isNil $meta) }}
47 <span class="bg-gray-200 rounded py-1/2 px-1 text-sm font-mono">{{ $meta }}</span>
48 {{ end }}
49 </div>
50 </a>
51 {{ end }}
52 </div>
53 </nav>
54 <section
55 class="bg-white p-6 rounded relative z-20 w-full mx-auto drop-shadow-sm"
56 >
57 {{ block "repoContent" . }}{{ end }}
58 </section>
59 {{ block "repoAfter" . }}{{ end }}
60 </section>
61{{ end }}
62
63{{ define "layouts/repobase" }}
64 {{ template "layouts/base" . }}
65{{ end }}