diff options
author | Xinyu Zhou <i@sourcehut.net> | 2022-11-21 13:14:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 13:14:58 +0800 |
commit | b4802b9b2eae044e35f022dc7116986e4762a944 (patch) | |
tree | 797be6fa1bff09a869c03344d4d01cb5710b9973 /templates/base | |
parent | 9380bb6d0c7fb8d2652d19a9aec87994a6e99f8c (diff) | |
download | gitea-b4802b9b2eae044e35f022dc7116986e4762a944.tar.gz gitea-b4802b9b2eae044e35f022dc7116986e4762a944.zip |
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>
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/head.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 70a88ff755..e2fc8434aa 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -15,7 +15,7 @@ <meta name="go-import" content="{{.GoGetImport}} git {{.RepoCloneLink.HTTPS}}"> <meta name="go-source" content="{{.GoGetImport}} _ {{.GoDocDirectory}} {{.GoDocFile}}"> {{end}} -{{if .FeedURL}} +{{if and .EnableFeed .FeedURL}} <link rel="alternate" type="application/atom+xml" title="" href="{{.FeedURL}}.atom"> <link rel="alternate" type="application/rss+xml" title="" href="{{.FeedURL}}.rss"> {{end}} |