Add [other].SHOW_FOOTER_POWERED_BY setting to hide Powered by (#30253)

This allows you to hide the "Powered by" text in footer via
`SHOW_FOOTER_POWERED_BY` flag in configuration.

---------

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
Yakov 2024-04-03 09:01:50 -07:00 committed by GitHub
parent 0ceecfc11a
commit 609a627a44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 12 additions and 1 deletions

View file

@ -8,6 +8,7 @@ import "code.gitea.io/gitea/modules/log"
type OtherConfig struct {
ShowFooterVersion bool
ShowFooterTemplateLoadTime bool
ShowFooterPoweredBy bool
EnableFeed bool
EnableSitemap bool
}
@ -15,6 +16,7 @@ type OtherConfig struct {
var Other = OtherConfig{
ShowFooterVersion: true,
ShowFooterTemplateLoadTime: true,
ShowFooterPoweredBy: true,
EnableSitemap: true,
EnableFeed: true,
}