this repo has no description
1{{ define "repo/fragments/cloneInstructions" }}
2 {{ $knot := .RepoInfo.Knot }}
3 {{ if eq $knot "knot1.tangled.sh" }}
4 {{ $knot = "tangled.sh" }}
5 {{ end }}
6 <section
7 class="mt-4 p-6 rounded drop-shadow-sm bg-white dark:bg-gray-800 dark:text-white w-full mx-auto overflow-auto flex flex-col gap-4">
8 <div class="flex flex-col gap-2">
9 <strong>push</strong>
10 <div class="md:pl-4 overflow-x-auto whitespace-nowrap">
11 <code class="dark:text-gray-100">
12 git remote add origin
13 git@{{ $knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}
14 </code>
15 </div>
16 </div>
17
18 <div class="flex flex-col gap-2">
19 <strong>clone</strong>
20 <div class="md:pl-4 flex flex-col gap-2">
21 <div class="flex items-center gap-3">
22 <span
23 class="bg-gray-100 dark:bg-gray-700 p-1 mr-1 font-mono text-sm rounded select-none dark:text-white">
24 HTTP
25 </span>
26 <div class="overflow-x-auto whitespace-nowrap flex-1">
27 <code class="dark:text-gray-100">
28 git clone
29 https://tangled.sh/{{ .RepoInfo.OwnerWithAt }}/{{ .RepoInfo.Name }}
30 </code>
31 </div>
32 </div>
33
34 <div class="flex items-center gap-3">
35 <span
36 class="bg-gray-100 dark:bg-gray-700 p-1 mr-1 font-mono text-sm rounded select-none dark:text-white">
37 SSH
38 </span>
39 <div class="overflow-x-auto whitespace-nowrap flex-1">
40 <code class="dark:text-gray-100">
41 git clone
42 git@{{ $knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}
43 </code>
44 </div>
45 </div>
46 </div>
47 </div>
48
49 <p class="py-2 text-gray-500 dark:text-gray-400">
50 Note that for self-hosted knots, clone URLs may be different based on your
51 setup.
52 </p>
53 </section>
54{{ end }}