overview.html

 1{{define "content"}}
 2{{if .IsEmpty}}
 3<section aria-labelledby="empty-state-heading">
 4  <h2 id="empty-state-heading">Empty repository</h2>
 5  <p>This repository is empty. Initialize it with your first commit:</p>
 6  <pre><code>git clone {{.SSHURL}}
 7cd {{.Repo.Name}}
 8touch README.md
 9git add README.md
10git commit -m "Initial commit"
11git push -u origin main</code></pre>
12</section>
13{{else}}
14<fieldset>
15  <h3>Clone</h3>
16  <label>
17    <input name="url-type" type="checkbox" role="switch" />
18    Use HTTP
19  </label>
20  <p id="ssh-url"><code>git clone {{.SSHURL}}</code></p>
21  <p id="http-url" style="display: none;"><code>git clone {{.HTTPURL}}</code></p>
22</fieldset>
23
24<script src="/static/url-switcher.js"></script>
25
26{{if .ReadmeHTML}}
27<section aria-labelledby="readme-heading">
28  <h2 id="readme-heading">README</h2>
29  <article>
30    {{.ReadmeHTML}}
31  </article>
32</section>
33{{end}}
34{{end}}
35{{end}}