aboutsummaryrefslogtreecommitdiff
path: root/templates/_header.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/_header.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/_header.tmpl')
-rw-r--r--templates/_header.tmpl10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/_header.tmpl b/templates/_header.tmpl
index 0100b7d..6a20f55 100644
--- a/templates/_header.tmpl
+++ b/templates/_header.tmpl
@@ -5,14 +5,14 @@
{{- define "header" -}}
<header id="main-header">
<div id="main-header-forge-title">
- <a href="/">{{ .global.forge_title }}</a>
+ <a href="/">{{- .global.forge_title -}}</a>
</div>
<div id="main-header-user">
- {{ if ne .user_id_string "" }}
- <a href="/:/users/{{ .user_id_string }}">{{ .username }}</a>
- {{ else }}
+ {{- if ne .user_id_string "" -}}
+ <a href="/:/users/{{- .user_id_string -}}">{{- .username -}}</a>
+ {{- else -}}
<a href="/:/login/">Login</a>
- {{ end }}
+ {{- end -}}
</div>
</header>
{{- end -}}