Added new code for blog, this is the final code that is working with CDN