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