mirror of
https://gitlab.com/octtspacc/staticoso
synced 2025-04-22 05:47:34 +02:00
47 lines
1.4 KiB
Python
47 lines
1.4 KiB
Python
""" ================================== |
|
|
| This file is part of |
|
|
| staticoso |
|
|
| Just a simple Static Site Generator |
|
|
| |
|
|
| Licensed under the AGPLv3 license |
|
|
| Copyright (C) 2022-2023, OctoSpacc |
|
|
| ================================== """
|
|
|
|
ReservedPaths = ('site.ini', 'assets', 'pages', 'posts', 'templates', 'staticparts', 'dynamicparts')
|
|
FileExtensions = {
|
|
'Pages': ('htm', 'html', 'markdown', 'md', 'pug', 'txt'),
|
|
'HTML': ('.htm', '.html'),
|
|
'Markdown': ('.markdown', '.md'),
|
|
'Tmp': ('htm', 'markdown', 'md', 'pug', 'txt')}
|
|
|
|
PosStrBools = ('true', 'yes', 'on', '1', 'enabled')
|
|
NegStrBools = ('false', 'no', 'off', '0', 'disabled')
|
|
|
|
PageIndexStrPos = tuple(list(PosStrBools) + ['all', 'listed', 'indexed', 'unlinked'])
|
|
PageIndexStrNeg = tuple(list(NegStrBools) + ['none', 'unlisted', 'unindexed', 'hidden'])
|
|
|
|
InternalMacrosWraps = (('[', ']'), ('<', '>'))
|
|
|
|
PageMetaDefault = {
|
|
'Template': None, # Replace with var
|
|
'Head': '',
|
|
'Style': '',
|
|
'Type': None, # Replace with var
|
|
'Index': 'Unspecified',
|
|
'Feed': 'True',
|
|
'Title': '',
|
|
'HTMLTitle': '',
|
|
'Description': '',
|
|
'Image': '',
|
|
'Macros': {},
|
|
'Categories': [],
|
|
'URLs': [],
|
|
'CreatedOn': '',
|
|
'PublishedOn': '', # Alias of CreatedOn
|
|
'EditedOn': '',
|
|
'UpdatedOn': '', # Alias of EditedOn
|
|
'Order': None,
|
|
'Language': None,
|
|
'Downsync': None
|
|
}
|