Redirect frontpage
This commit is contained in:
parent
4ce0bed52c
commit
43f350f5d7
@ -5,7 +5,11 @@ component Sidebar(user *arn.User)
|
||||
else
|
||||
img.user-image.lazy(data-src="/images/brand/64", alt="Anime Notifier")
|
||||
|
||||
SidebarButton("Home", "/", "home")
|
||||
if user != nil
|
||||
SidebarButton("Home", "/animelist/watching", "home")
|
||||
else
|
||||
SidebarButton("Home", "/", "home")
|
||||
|
||||
SidebarButton("Forum", "/forum", "comment")
|
||||
SidebarButton("Explore", "/explore", "th")
|
||||
SidebarButton("Artworks", "/artworks", "paint-brush")
|
||||
|
@ -1,8 +1,6 @@
|
||||
package home
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/pages/frontpage"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
@ -16,5 +14,6 @@ func Get(ctx *aero.Context) string {
|
||||
return frontpage.Get(ctx)
|
||||
}
|
||||
|
||||
return AnimeList(ctx, user, arn.AnimeListStatusWatching)
|
||||
return ctx.Redirect("/animelist/watching")
|
||||
//return AnimeList(ctx, user, arn.AnimeListStatusWatching)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user