Blogger sentenced to more than 20 years in prison