#725 Support Slogan and Display Name Format

Signed-off-by: SIMULATAN <simulatan@noreply.code.forgejo.org>
This commit is contained in:
SIMULATAN 2024-08-09 21:42:16 +00:00 committed by SIMULATAN
parent 81ea06c1e0
commit c6c79b5a9f
No known key found for this signature in database
GPG key ID: 710A0641304E75FB

View file

@ -208,7 +208,7 @@ https
{{- $_ := set $inlines $key (join "\n" $section) -}} {{- $_ := set $inlines $key (join "\n" $section) -}}
{{- end -}} {{- end -}}
{{- else }} {{- else }}
{{- if or (eq $key "APP_NAME") (eq $key "RUN_USER") (eq $key "RUN_MODE") -}} {{- if or (eq $key "APP_NAME") (eq $key "RUN_USER") (eq $key "RUN_MODE") (eq $key "APP_SLOGAN") (eq $key "APP_DISPLAY_NAME_FORMAT") -}}
{{- $generals = append $generals (printf "%s=%s" $key $value) -}} {{- $generals = append $generals (printf "%s=%s" $key $value) -}}
{{- else -}} {{- else -}}
{{- (printf "Key %s cannot be on top level of configuration" $key) | fail -}} {{- (printf "Key %s cannot be on top level of configuration" $key) | fail -}}