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