this repo has no description
1{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }}
2
3{{ define "content" }}
4 <section id="repo-header" class="mb-4">
5 <p class="text-xl">
6 <a href="/{{ .RepoInfo.OwnerWithAt }}" class="no-underline hover:underline">{{ .RepoInfo.OwnerWithAt }}</a>
7 /
8 <a href="/{{ .RepoInfo.FullName }}" class="no-underline hover:underline">{{ .RepoInfo.Name }}</a>
9 </p>
10 <span>
11 {{ if .RepoInfo.Description }}
12 {{ .RepoInfo.Description }}
13 {{ else }}
14 <span class="italic">this repo has no description</span>
15 {{ end }}
16 </span>
17 </section>
18 <section id="repo-links" class="min-h-screen flex flex-col">
19 <nav class="w-full mx-auto">
20 <div class="flex z-60 border-black border-b">
21 {{ $activeTabStyles := "border-black border-l border-r border-t border-b-0 -mb-px bg-white" }}
22 {{ $tabs := .RepoInfo.GetTabs }}
23 {{ range $item := $tabs }}
24 {{ $key := index $item 0 }}
25 {{ $value := index $item 1 }}
26 <a
27 href="/{{ $.RepoInfo.FullName }}{{ $value }}"
28 class="relative -mr-px group no-underline"
29 hx-boost="true"
30 >
31 <div
32 class="px-4 py-2 mr-1 text-black min-w-[80px] text-center relative group-hover:bg-gray-200
33 {{ if eq $.Active $key }}{{ $activeTabStyles }}{{ end }}"
34 >
35 {{ $key }}
36 </div>
37 </a>
38 {{ end}}
39 </div>
40 </nav>
41 <section
42 class="bg-white p-6 min-h-[200px] border-l border-r border-b border-black relative z-20 w-full mx-auto"
43 >
44 {{ block "repoContent" . }}{{ end }}
45 </section>
46 </section>
47{{ end }}
48
49{{ define "layouts/repobase" }}
50 {{ template "layouts/base" . }}
51{{ end }}