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