-
Notifications
You must be signed in to change notification settings - Fork 4
/
wildcat_constants.rb
52 lines (44 loc) · 1.67 KB
/
wildcat_constants.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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'