{{/*### Handler=/ TitleBar=Home Page KyutGrill=homepage2.jpg */}} {{ define "tpl" }} {{ $cf := .ClientFlags }} {{ $ds := band $cf 1 }} {{ $ := . }}
{{ $set := systemSettings "website_home_alert" }} {{ with $set.website_home_alert.String }}
{{ . | html }}
{{ end }} {{/* Not logged in block */}} {{ if not .Context.User.ID }}

{{ .T "Welcome to Yozora." }}

{{ .T "You look new here. Allow us to introduce you to what Yozora is." }}

{{ .T "Yozora is a private osu! server, featuring multiplayer, PP for relax, autopilot and regular osu!, leaderboards for every (submitted) map, a very active community and a development team going strong implementing new features and squashing bugs. You can check out even more features here. It has also a very friendly community, and it's open source! Just so you know, we currently have %s users online and %s registered users!" (rediget "ripple:online_users") (rediget "ripple:registered_users") | html }}

{{ .T "What are you waiting for? Join Yozora! It's risk-free: you won't get your account banned on the official server if you play on Yozora.
You can also switch anytime between the official osu! server and Yozora!" | html }}

{{ else }}

{{ .T "Howdy, %s!" .Context.User.Username }}

{{ .T "Welcome back to Yozora. We currently have %s online users and %s total registered users. Nice day to farm PP, isn't it?" (rediget "ripple:online_users") (rediget "ripple:registered_users") | html }}

{ with (.Get "blog/posts?l=5") }}

{{ $.T "Latest news from our blog" | html }}

{{ range $i, $v := .posts }}

{{ html $v.title }}
Yozora, {{ time $v.created_at }}

{{ $v.snippet }}

{{ end }}
{{ end }}
{{ end }}