This commit is contained in:
Alicia 2019-02-24 16:52:26 +00:00
parent ee9ae352a8
commit 6817d88cd5
2 changed files with 21 additions and 1 deletions

View File

@ -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)
}

View File

@ -36,6 +36,26 @@ KyutGrill=homepage2.jpg
{{ .T "Welcome back to Yozora. We currently have <b>%s online users and %s total registered users.</b> Nice day to farm PP, isn't it?" (rediget "ripple:online_users") (rediget "ripple:registered_users") | html }}
</p>
</div>
{ with (.Get "blog/posts?l=5") }}
<div class="ui raised segment">
<h1 class="ui center aligned header">
{{ $.T "Latest news from our <a href='https://medium.com/@yozora'>blog</a>" | html }}
</h1>
</div>
<div class="ui segments">
{{ range $i, $v := .posts }}
<div class="ui segment">
<h1 class="ui header no top margin">
<a href="https://medium.com/@yozora/{{ $v.unique_slug }}" class="inherit">{{ html $v.title }}</a>
<div class="sub header"><a href="https://medium.com/@yozora">Yozora</a>, {{ time $v.created_at }}</div>
</h1>
<p>
{{ $v.snippet }}
</p>
</div>
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
{{ end }}