full code for blog