update post and link
extract syntax in template