mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 14:00:04 +02:00
Allow disable RSS/Atom feed (#21622)
This patch provide a mechanism to disable RSS/Atom feed. Signed-off-by: Xinyu Zhou <i@sourcehut.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
parent
9380bb6d0c
commit
b4802b9b2e
10 changed files with 40 additions and 15 deletions
|
@ -440,6 +440,7 @@ var (
|
|||
ShowFooterBranding bool
|
||||
ShowFooterVersion bool
|
||||
ShowFooterTemplateLoadTime bool
|
||||
EnableFeed bool
|
||||
|
||||
// Global setting objects
|
||||
Cfg *ini.File
|
||||
|
@ -1102,6 +1103,7 @@ func loadFromConf(allowEmpty bool, extraConfig string) {
|
|||
ShowFooterVersion = Cfg.Section("other").Key("SHOW_FOOTER_VERSION").MustBool(true)
|
||||
ShowFooterTemplateLoadTime = Cfg.Section("other").Key("SHOW_FOOTER_TEMPLATE_LOAD_TIME").MustBool(true)
|
||||
EnableSitemap = Cfg.Section("other").Key("ENABLE_SITEMAP").MustBool(true)
|
||||
EnableFeed = Cfg.Section("other").Key("ENABLE_FEED").MustBool(true)
|
||||
|
||||
UI.ShowUserEmail = Cfg.Section("ui").Key("SHOW_USER_EMAIL").MustBool(true)
|
||||
UI.DefaultShowFullName = Cfg.Section("ui").Key("DEFAULT_SHOW_FULL_NAME").MustBool(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue