ENV_KEY_WEBSITES_FOLDER = 'WILDCAT_WEBSITES_FOLDER'
ENV_KEY_USERNAME = 'WILDCAT_USERNAME'
ENV_KEY_HASHED_PASSWORD = 'WILDCAT_HASHED_PASSWORD'
ENV_KEY_RUNNING_AS_SERVER = 'WILDCAT_RUNNING_AS_SERVER'

MARKDOWN_SUFFIX = '.markdown'
HTML_SUFFIX = '.html'
MARKDOWN_NO_LEADING_DOT = 'markdown'
HTML_NO_LEADING_DOT = 'html'

# These appear inside source files, at the top.

TITLE_KEY = 'title'
TITLE_SHOW_KEY = 'show_title'
DESCRIPTION_KEY = 'description'
TEMPLATE_NAME_KEY = 'template'
LINK_KEY = 'link'
PUB_DATE_KEY = 'pubDate'
MOD_DATE_KEY = 'modDate'
ENCLOSURE_URL_KEY = 'enclosure'
ENCLOSURE_TYPE_KEY = 'enclosureType'
ENCLOSURE_LENGTH_KEY = 'enclosureLength'
ITUNES_DURATION_KEY = 'itunesDuration'
ITUNES_SUBTITLE_KEY = 'itunesItemSubtitle'
ITUNES_SUMMARY_KEY = 'itunesItemSummary'
ITUNES_EXPLICIT_KEY = 'itunesExplicit'
MEDIA_THUMBNAIL_KEY = 'mediaThumbnail'

# These appear in context tables when rendering.

CONTEXT_PERMALINK_KEY = 'permalink'
CONTEXT_EXTERNAL_URL_KEY = 'external_url'
CONTEXT_LINK_PREFERRING_EXTERNAL_URL_KEY = 'link_preferring_external_url' # Use external_url when present, falling back to permalink.
CONTEXT_TITLE_KEY = 'title'
CONTEXT_DESCRIPTION_KEY = 'description'
CONTEXT_CONTENT_HTML_KEY = 'content_html'
CONTEXT_PUB_DATE_KEY = 'pub_date'
CONTEXT_DISPLAY_DATE_KEY = 'display_date'

# JSON Feed generation

JSON_FEED_URL_KEY = 'url'
JSON_FEED_EXTERNAL_URL_KEY = 'external_url'
JSON_FEED_ID_KEY = 'id'
JSON_FEED_TITLE_KEY = 'title'
JSON_FEED_CONTENT_HTML_KEY = 'content_html'
JSON_FEED_PUB_DATE_KEY = 'date_published'
JSON_FEED_ATTACHMENTS_KEY = 'attachments'
JSON_FEED_ENCLOSURE_URL = 'url'
JSON_FEED_ENCLOSURE_MIME_TYPE = 'mime_type'
JSON_FEED_ENCLOSURE_SIZE_IN_BYTES = 'size_in_bytes'

