diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-07 21:18:28 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-07 21:18:51 +0800 |
commit | 5699c497a45e08e9e502974e8055d1291dde29dd (patch) | |
tree | 5f8c6555142ead9e1359f9e778e4f7375dd60069 /templates/index.tmpl | |
parent | http/templates: Minify templates (diff) | |
download | forge-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.tmpl | 20 |
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 – {{ .global.forge_title }}</title> + {{- template "head_common" . -}} + <title>Index – {{ .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> |