Meme
This commit is contained in:
parent
ee9ae352a8
commit
6817d88cd5
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user