Updated to handle config being false (via YAML::load_file, say).
Updated to use the correct index for the day date format, and to use has_key? when checking for a template during pagination.