1{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }}
2
3{{ define "repoContent" }}
4 <main>
5 <p class="text-center pt-5 text-gray-400 dark:text-gray-500">
6 This is an empty repository. Push some commits here.
7 </p>
8 </main>
9{{ end }}
10
11{{ define "repoAfter" }}
12<section class="mt-4 p-6 rounded bg-white dark:bg-gray-800 dark:text-white w-full mx-auto overflow-auto">
13 <strong>push</strong>
14 <div class="py-2">
15 <code class="dark:text-gray-300">git remote add origin git@{{.RepoInfo.Knot}}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code>
16 </div>
17 <strong>clone</strong>
18
19
20 <div class="flex flex-col gap-2">
21 <div class="pt-2 flex flex-row gap-2">
22 <span class="bg-gray-100 dark:bg-gray-700 p-1 mr-1 font-mono text-sm rounded select-none dark:text-gray-300">HTTP</span>
23 <code class="dark:text-gray-300">git clone https://tangled.sh/{{ .RepoInfo.OwnerWithAt }}/{{ .RepoInfo.Name }}</code>
24 </div>
25 <div class="pt-2 flex flex-row gap-2">
26 <span class="bg-gray-100 dark:bg-gray-700 p-1 mr-1 font-mono text-sm rounded select-none dark:text-gray-300">SSH</span><code class="dark:text-gray-300">git clone git@{{.RepoInfo.Knot}}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code>
27 </div>
28 </div>
29 <p class="py-2 text-gray-500 dark:text-gray-400">Note that for self-hosted knots, clone URLs may be different based on your setup.</p>
30</section>
31
32{{ end }}