this repo has no description
1{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }} 2 3{{ define "extrameta" }} 4 {{ template "repo/fragments/meta" . }} 5 {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo) }} 6{{ end }} 7 8{{ define "repoContent" }} 9 <main> 10 {{ if gt (len .BranchesTrunc) 0 }} 11 <div class="flex flex-col items-center"> 12 <p class="text-center pt-5 text-gray-400 dark:text-gray-500"> 13 This branch is empty. Other branches in this repository are populated: 14 </p> 15 <div 16 class="mt-4 grid grid-cols-1 divide-y divide-gray-200 dark:divide-gray-700 rounded border border-gray-200 dark:border-gray-700 w-full md:w-1/2"> 17 {{ range $br := .BranchesTrunc }} 18 <a 19 href="/{{ $.RepoInfo.FullName }}/tree/{{ $br.Name | urlquery }}" 20 class="no-underline hover:no-underline"> 21 <div class="flex items-center justify-between p-2"> 22 {{ $br.Name }} 23 <span class="text-gray-500 dark:text-gray-400"> 24 {{ template "repo/fragments/time" $br.Commit.Committer.When }} 25 </span> 26 </div> 27 </a> 28 {{ end }} 29 </div> 30 </div> 31 {{ else if (and .LoggedInUser (eq .LoggedInUser.Did .RepoInfo.OwnerDid)) }} 32 {{ $knot := .RepoInfo.Knot }} 33 {{ if eq $knot "knot1.tangled.sh" }} 34 {{ $knot = "tangled.sh" }} 35 {{ end }} 36 <div class="w-full flex place-content-center"> 37 <div class="py-6 w-fit flex flex-col gap-4"> 38 <p>This is an empty repository. To get started:</p> 39 {{ $bullet := "mx-2 text-xs bg-gray-200 dark:bg-gray-600 rounded-full size-5 flex items-center justify-center font-mono inline-flex align-middle" }} 40 41 42 <p> 43 <span class="{{ $bullet }}">1</span> 44 First, generate a new 45 <a 46 href="https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key" 47 class="underline"> 48 SSH key pair 49 </a> 50 . 51 </p> 52 <p> 53 <span class="{{ $bullet }}">2</span> 54 Then add the public key to your account from the 55 <a href="/settings" class="underline">settings</a> 56 page. 57 </p> 58 <p> 59 <span class="{{ $bullet }}">3</span> 60 Configure your remote to 61 <code> 62 git@{{ $knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }} 63 </code> 64 </p> 65 <p> 66 <span class="{{ $bullet }}">4</span> 67 Push! 68 </p> 69 </div> 70 </div> 71 {{ else }} 72 <p class="text-gray-400 dark:text-gray-500 py-6 text-center"> 73 This is an empty repository. 74 </p> 75 {{ end }} 76 </main> 77{{ end }} 78 79{{ define "repoAfter" }} 80 {{ template "repo/fragments/cloneInstructions" . }} 81{{ end }}