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/repo_tree_file.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 '')
-rw-r--r-- | templates/repo_tree_file.tmpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo_tree_file.tmpl b/templates/repo_tree_file.tmpl index 333e1dc..b0ce0f1 100644 --- a/templates/repo_tree_file.tmpl +++ b/templates/repo_tree_file.tmpl @@ -6,20 +6,20 @@ <!DOCTYPE html> <html lang="en"> <head> - {{ template "head_common" . }} + {{- template "head_common" . -}} <link rel="stylesheet" href="/:/static/chroma.css" /> - <title>/{{ .path_spec }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title }}</title> + <title>/{{ .path_spec }} – {{ .repo_name }} – {{ template "group_path_plain" .group_path }} – {{ .global.forge_title -}}</title> </head> <body class="repo-tree-file"> - {{ template "header" . }} + {{- template "header" . -}} <div class="padding"> <p> /{{ .path_spec }} (<a href="/{{ template "group_path_plain" .group_path }}/:/repos/{{ .repo_name }}/raw/{{ .path_spec }}{{ if .ref_type }}?{{ .ref_type }}={{ .ref_name }}{{ end }}">raw</a>) </p> - {{ .file_contents }} + {{- .file_contents -}} </div> <footer> - {{ template "footer" . }} + {{- template "footer" . -}} </footer> </body> </html> |