diff --git a/helpers.go b/helpers.go index 493cc10..6b072bc 100644 --- a/helpers.go +++ b/helpers.go @@ -190,7 +190,7 @@ func blogRedirect(c *gin.Context) { a := c.Param("url") red := blogRedirectMap[a] if red == "" { - red = "https://blog.ripple.moe" + red = "https://medium.com/@yozora" } c.Redirect(301, red) } diff --git a/templates/homepage.html b/templates/homepage.html index b90fb98..2ce6b40 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -36,6 +36,26 @@ KyutGrill=homepage2.jpg {{ .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 }} {{ end }}