The Jinja2 template previously compared the user id of the currently logged in user
with the `author_id` of each blog post in order to determine if the logged in user
had edit permissions on that blog post. However, one of `g.user['id']` and
`post['author_id']` was a string and the other was an integer. This caused the
equality comparison to fail in every case.
Now, a Jinja filter is used to cast each of the operands to the same type prior to
the equality comparison being evaluated. This ensures that the "Edit" link/button
now shows up when appropriate.
Signed-off-by: zach wick <zach@zachwick.com>