add date function from post.html

Add the date function from https://github.com/mybb/mybb-com/blob/gh-pages/_layouts/post.html so we can display when page was created or updated.