51 no post/pages - pull request

note: This is a branch of #36

This contains fixes on empty templates (when draft post / page were deleted).