minor code cleanup for samples/blog