Added Open Graph tags to threads and posts

This commit is contained in:
2018-11-07 03:14:13 +09:00
parent 60b8016a1b
commit 61454b3e5b
4 changed files with 44 additions and 0 deletions

View File

@ -19,5 +19,6 @@ func Get(ctx *aero.Context) string {
return ctx.Error(http.StatusNotFound, "Post not found", err)
}
ctx.Data = getOpenGraph(ctx, post)
return ctx.HTML(components.Post(post, user))
}