From 6817d88cd5492e9881833457af321c8be9a56203 Mon Sep 17 00:00:00 2001 From: Alicia Date: Sun, 24 Feb 2019 16:52:26 +0000 Subject: [PATCH] Meme --- helpers.go | 2 +- templates/homepage.html | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) 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 }}