When view _Siderbar or _Footer, just display once (#19501)
When view _Siderbar or _Footer, just display once (#19501)

Co-authored-by: zeripath <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>
go-gitea/gitea,go-gitea/gitea,go-gitea/gitea