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

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