diff --git a/pages/embed/embed.go b/pages/embed/embed.go index 26229140..432bce99 100644 --- a/pages/embed/embed.go +++ b/pages/embed/embed.go @@ -14,7 +14,7 @@ func Get(ctx *aero.Context) string { user := utils.GetUser(ctx) if user == nil { - return utils.AllowEmbed(ctx, ctx.HTML(components.Login())) + return utils.AllowEmbed(ctx, ctx.HTML(components.Login("_blank"))) } if !user.IsPro() && user.TimeSinceRegistered() > 14*24*time.Hour { diff --git a/pages/frontpage/frontpage.pixy b/pages/frontpage/frontpage.pixy index e463cd79..47f68176 100644 --- a/pages/frontpage/frontpage.pixy +++ b/pages/frontpage/frontpage.pixy @@ -6,7 +6,7 @@ component FrontPage h2.mountable Your home for everything about anime. - Login + Login("") Footer video.bg-video(autoplay="autoplay", loop="loop") diff --git a/pages/login/login.go b/pages/login/login.go index d1fe9262..6ce8450b 100644 --- a/pages/login/login.go +++ b/pages/login/login.go @@ -7,5 +7,5 @@ import ( // Get ... func Get(ctx *aero.Context) string { - return ctx.HTML(components.Login()) + return ctx.HTML(components.Login("")) } diff --git a/pages/login/login.pixy b/pages/login/login.pixy index 34d4b59f..3e10b49e 100644 --- a/pages/login/login.pixy +++ b/pages/login/login.pixy @@ -1,9 +1,9 @@ -component Login +component Login(target string) .login-buttons.mountable - a.login-button.login-button-google(href="/auth/google") + a.login-button.login-button-google(href="/auth/google", target=target) Icon("google") span Sign in via Google - a.login-button.login-button-facebook(href="/auth/facebook") + a.login-button.login-button-facebook(href="/auth/facebook", target=target) Icon("facebook") span Sign in via Facebook \ No newline at end of file