aboutsummaryrefslogtreecommitdiff
path: root/templates/index.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-07 21:18:28 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-07 21:18:51 +0800
commit5699c497a45e08e9e502974e8055d1291dde29dd (patch)
tree5f8c6555142ead9e1359f9e778e4f7375dd60069 /templates/index.tmpl
parenthttp/templates: Minify templates (diff)
downloadforge-5699c497a45e08e9e502974e8055d1291dde29dd.tar.gz
forge-5699c497a45e08e9e502974e8055d1291dde29dd.tar.zst
forge-5699c497a45e08e9e502974e8055d1291dde29dd.zip
http/templates: Reduce whitespace
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r--templates/index.tmpl20
1 files changed, 10 insertions, 10 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl
index 8d787c9..3bef7b0 100644
--- a/templates/index.tmpl
+++ b/templates/index.tmpl
@@ -6,11 +6,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
- {{ template "head_common" . }}
- <title>Index &ndash; {{ .global.forge_title }}</title>
+ {{- template "head_common" . -}}
+ <title>Index &ndash; {{ .global.forge_title -}}</title>
</head>
<body class="index">
- {{ template "header" . }}
+ {{- template "header" . -}}
<div class="padding-wrapper">
<table class="wide">
<thead>
@@ -23,16 +23,16 @@
</tr>
</thead>
<tbody>
- {{- range .groups }}
+ {{- range .groups -}}
<tr>
<td>
- <a href="{{ .Name | path_escape }}/">{{ .Name }}</a>
+ <a href="{{- .Name | path_escape -}}/">{{- .Name -}}</a>
</td>
<td>
- {{ .Description }}
+ {{- .Description -}}
</td>
</tr>
- {{- end }}
+ {{- end -}}
</tbody>
</table>
<div class="padding-wrapper">
@@ -47,17 +47,17 @@
<tbody>
<tr>
<th scope="row">SSH public key</th>
- <td><code>{{ .global.server_public_key_string }}</code></td>
+ <td><code>{{- .global.server_public_key_string -}}</code></td>
</tr>
<tr>
<th scope="row">SSH fingerprint</th>
- <td><code>{{ .global.server_public_key_fingerprint }}</code></td>
+ <td><code>{{- .global.server_public_key_fingerprint -}}</code></td>
</tr>
</tbody>
</table>
</div>
<footer>
- {{ template "footer" . }}
+ {{- template "footer" . -}}
</footer>
</body>
</html>