diff options
author | Runxi Yu <me@runxiyu.org> | 2024-07-27 08:00:00 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-07-27 08:00:00 +0800 |
commit | 61fcfac541fe2271c052771b1c33b7511efb75bb (patch) | |
tree | 70b4eb7fdf5b2d7bb17c09c9a5060b2ad79813b6 /templates/repo.html | |
parent | Add myself to LICENSE (diff) | |
download | legitrx-61fcfac541fe2271c052771b1c33b7511efb75bb.tar.gz legitrx-61fcfac541fe2271c052771b1c33b7511efb75bb.tar.zst legitrx-61fcfac541fe2271c052771b1c33b7511efb75bb.zip |
Indent the HTML with tabs
Diffstat (limited to 'templates/repo.html')
-rw-r--r-- | templates/repo.html | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/templates/repo.html b/templates/repo.html index 68ab269..a9f4a49 100644 --- a/templates/repo.html +++ b/templates/repo.html @@ -5,35 +5,35 @@ {{ template "repoheader" . }} - <body> - {{ template "nav" . }} - <main> - {{ $repo := .name }} - <div class="log"> - {{ range .commits }} - <div> - <div><a href="/{{ $repo }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a></div> - <pre>{{ .Message }}</pre> - </div> - <div class="commit-info"> - {{ .Author.Name }} <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a> - <div>{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div> - </div> - {{ end }} - </div> + <body> + {{ template "nav" . }} + <main> + {{ $repo := .name }} + <div class="log"> + {{ range .commits }} + <div> + <div><a href="/{{ $repo }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a></div> + <pre>{{ .Message }}</pre> + </div> + <div class="commit-info"> + {{ .Author.Name }} <a href="mailto:{{ .Author.Email }}" class="commit-email">{{ .Author.Email }}</a> + <div>{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div> + </div> + {{ end }} + </div> {{- if .readme }} - <article class="readme"> - {{- .readme -}} - </article> + <article class="readme"> + {{- .readme -}} + </article> {{- end -}} - <div class="clone-url"> - <strong>clone</strong> - <pre> + <div class="clone-url"> + <strong>clone</strong> + <pre> git clone https://{{ .servername }}/{{ .name }} - </pre> - </div> - </main> - </body> + </pre> + </div> + </main> + </body> </html> {{ end }} |