2020-01-08 13:45:51 +01:00
|
|
|
import os
|
2019-10-02 11:13:26 +02:00
|
|
|
from datetime import datetime
|
2021-01-11 21:19:53 +01:00
|
|
|
from pelican_decorate_content import decorate_content
|
|
|
|
|
2019-05-26 21:59:05 +02:00
|
|
|
# If your site is available via HTTPS, make sure SITEURL begins with https://
|
|
|
|
RELATIVE_URLS = False
|
|
|
|
|
2019-05-21 09:41:23 +02:00
|
|
|
AUTHOR = 'offen'
|
2021-03-04 09:42:37 +01:00
|
|
|
SITENAME = 'Fair Web Analytics | Offen'
|
2019-05-21 09:41:23 +02:00
|
|
|
PATH = 'content'
|
2019-05-21 23:01:57 +02:00
|
|
|
TIMEZONE = 'Europe/Berlin'
|
2019-05-21 09:41:23 +02:00
|
|
|
DEFAULT_LANG = 'en'
|
|
|
|
|
2020-07-09 13:29:27 +02:00
|
|
|
BUILD_DATE = datetime.now()
|
2019-10-02 11:13:26 +02:00
|
|
|
|
2019-05-21 09:41:23 +02:00
|
|
|
# Feed generation is usually not desired when developing
|
|
|
|
FEED_ALL_ATOM = None
|
|
|
|
CATEGORY_FEED_ATOM = None
|
|
|
|
TRANSLATION_FEED_ATOM = None
|
|
|
|
AUTHOR_FEED_ATOM = None
|
|
|
|
AUTHOR_FEED_RSS = None
|
|
|
|
|
2019-10-21 22:23:34 +02:00
|
|
|
SITEURL = 'http://localhost:8000'
|
|
|
|
|
2019-05-21 23:01:57 +02:00
|
|
|
# pagination
|
2019-05-21 09:41:23 +02:00
|
|
|
DEFAULT_PAGINATION = False
|
|
|
|
|
2019-05-31 16:50:23 +02:00
|
|
|
THEME = './theme'
|
2019-05-24 09:17:16 +02:00
|
|
|
|
|
|
|
# Delete the output directory before generating new files.
|
2020-12-17 17:25:31 +01:00
|
|
|
DELETE_OUTPUT_DIRECTORY = False
|
|
|
|
CACHE_CONTENT = True
|
2019-05-24 09:17:16 +02:00
|
|
|
|
2019-12-13 12:24:58 +01:00
|
|
|
DIRECT_TEMPLATES = ['sitemap', 'archives']
|
|
|
|
|
2019-05-31 16:50:23 +02:00
|
|
|
# dont create following standard pages
|
2019-12-13 11:23:02 +01:00
|
|
|
AUTHOR_SAVE_AS = ''
|
|
|
|
AUTHORS_SAVE_AS = ''
|
|
|
|
CATEGORY_SAVE_AS = ''
|
|
|
|
CATEGORIES_SAVE_AS = ''
|
|
|
|
TAG_SAVE_AS = ''
|
|
|
|
TAGS_SAVE_AS = ''
|
2019-05-24 09:17:16 +02:00
|
|
|
|
2019-12-13 12:24:58 +01:00
|
|
|
ARCHIVES_SAVE_AS = 'blog/index.html'
|
2019-10-21 22:23:34 +02:00
|
|
|
SITEMAP_SAVE_AS = 'sitemap.xml'
|
2019-12-13 11:08:08 +01:00
|
|
|
PAGE_SAVE_AS = '{slug}/index.html'
|
2019-12-13 11:23:02 +01:00
|
|
|
ARTICLE_SAVE_AS = 'blog/{slug}/index.html'
|
2019-07-16 15:41:47 +02:00
|
|
|
|
2019-10-19 20:46:44 +02:00
|
|
|
PLUGIN_PATHS = ['./plugins']
|
2021-01-11 21:19:53 +01:00
|
|
|
PLUGINS = [decorate_content, 'assets']
|
2019-10-20 08:38:31 +02:00
|
|
|
|
2020-06-08 23:07:08 +02:00
|
|
|
MARKDOWN = {
|
|
|
|
'extension_configs': {
|
|
|
|
'markdown.extensions.extra': {},
|
|
|
|
'markdown.extensions.meta': {},
|
|
|
|
'markdown.extensions.fenced_code': {},
|
2021-04-05 12:59:27 +02:00
|
|
|
'markdown_link_attr_modifier': {
|
|
|
|
'auto_title': 'on',
|
|
|
|
'new_tab': 'external_only',
|
|
|
|
},
|
2020-06-08 23:07:08 +02:00
|
|
|
},
|
|
|
|
'output_format': 'html5',
|
|
|
|
}
|
|
|
|
|
2019-12-06 16:55:54 +01:00
|
|
|
DECORATE_CONTENT = {
|
2020-03-02 23:04:36 +01:00
|
|
|
'[data-button]': ['w-100', 'w-auto-ns', 'tc', 'tl-ns', 'dib', 'mt3', 'ph4', 'pv2', 'b--solid', 'bw2'],
|
|
|
|
'[data-button-mb5]': ['w-100', 'w-auto-ns', 'tc', 'tl-ns', 'dib', 'mt3', 'mb5', 'ph4', 'pv2', 'b--solid', 'bw2'],
|
2020-06-25 11:06:34 +02:00
|
|
|
'[data-button-mb3]': ['w-100', 'w-auto-ns', 'tc', 'tl-ns', 'dib', 'mt3', 'mb3', 'ph4', 'pv2', 'b--solid', 'bw2'],
|
2020-04-27 21:51:46 +02:00
|
|
|
'[data-button="outline"]': ['b--gray', 'gray'],
|
|
|
|
'[data-button="full"]': ['cclr-brd-black-mid', 'white', 'cclr-bg-black-mid'],
|
|
|
|
'[data-button-mb5="full"]': ['cclr-brd-black-mid', 'white', 'cclr-bg-black-mid'],
|
2020-07-02 21:18:30 +02:00
|
|
|
'figure a': ['link'],
|
|
|
|
'p a': ['link', 'b', 'dim'],
|
|
|
|
'h1 a': ['link', 'b', 'dim'],
|
|
|
|
'h2 a': ['link', 'b', 'dim'],
|
|
|
|
'h3 a': ['link', 'b', 'dim'],
|
|
|
|
'h4 a': ['link', 'b', 'dim'],
|
2020-06-08 23:07:08 +02:00
|
|
|
'h5 a': ['normal', 'moon-gray'],
|
2020-07-06 20:37:51 +02:00
|
|
|
'li a': ['link', 'b', 'dim'],
|
2020-07-02 21:18:30 +02:00
|
|
|
'a:not([data-button])': ['gray'],
|
2020-07-02 22:25:50 +02:00
|
|
|
'h1': ['f2', 'normal', 'lh-title', 'mt3', 'ma0', 'mb3'],
|
2021-03-16 10:22:16 +01:00
|
|
|
'h2': ['f2', 'normal', 'lh-title', 'mt4', 'ma0', 'mb3'],
|
2021-03-16 10:52:53 +01:00
|
|
|
'h3': ['f3', 'normal', 'mt5', 'ma0', 'mb3'],
|
2020-12-28 21:40:03 +01:00
|
|
|
'h4': ['f5', 'normal', 'mt4', 'ma0', 'mb3'],
|
|
|
|
'h5': ['f5', 'normal', 'mt5', 'ma0', 'mb1'], # text over button
|
2022-01-13 14:39:46 +01:00
|
|
|
'h6': ['f5', 'normal','i', 'ma0'], # Not used
|
2019-12-27 23:09:42 +01:00
|
|
|
'p': ['ma0', 'pb3'],
|
2021-05-20 10:22:28 +02:00
|
|
|
'blockquote': ['f4', 'ma0', 'ph4-ns', 'pv3', 'mb3'],
|
2020-12-28 21:40:03 +01:00
|
|
|
'blockquote p': ['nb2'],
|
2021-05-20 10:22:28 +02:00
|
|
|
'hr': ['mt5', 'mb3', 'b--black-05'],
|
2022-01-13 14:39:46 +01:00
|
|
|
'ol': ['pb3']
|
2019-12-06 16:55:54 +01:00
|
|
|
}
|
2019-10-19 20:46:44 +02:00
|
|
|
|
2020-05-21 16:43:03 +02:00
|
|
|
GITHUB_REPO = 'https://github.com/offen/offen'
|
2020-08-03 15:28:33 +02:00
|
|
|
ROADMAP = 'https://github.com/offen/offen/projects/1'
|
2019-10-17 14:52:54 +02:00
|
|
|
CONTACT_EMAIL = 'hioffen@posteo.de'
|
2020-05-29 16:37:30 +02:00
|
|
|
PGP_KEY_FILE = '74B041E23DB29D552644CEB1B18C633D6967FE3F.asc'
|
2019-10-19 20:46:44 +02:00
|
|
|
PATREON_URL = 'https://www.patreon.com/offen'
|
|
|
|
LINKEDIN_URL = 'https://www.linkedin.com/company/hioffen'
|
|
|
|
TWITTER_URL = 'https://twitter.com/hioffen'
|
2020-08-03 15:28:33 +02:00
|
|
|
MASTODON_URL = 'https://fosstodon.org/@offen'
|
2020-02-22 21:14:53 +01:00
|
|
|
RELEASE_DIRECT_URL = 'https://get.offen.dev'
|
2020-04-27 21:51:46 +02:00
|
|
|
DOCKER_DIRECT_URL = 'https://hub.docker.com/r/offen/offen'
|
2020-02-22 21:14:53 +01:00
|
|
|
HEROKU_DIRECT_URL = 'https://heroku.com/deploy?template=https://github.com/offen/heroku/tree/master'
|
2020-08-05 09:34:38 +02:00
|
|
|
UBERSPACE_DIRECT_URL = 'https://lab.uberspace.de/guide_offen.html'
|
2020-08-27 10:28:16 +02:00
|
|
|
YUNOHOST_DIRECT_URL = 'https://github.com/offen/offen_ynh'
|
2021-04-10 13:31:26 +02:00
|
|
|
OFFEN_AUDITORIUM_URL = 'https://offen.offen.dev/auditorium/?utm_source=index'
|
2020-12-28 16:28:30 +01:00
|
|
|
DOCS_URL = 'https://docs.offen.dev/'
|
2020-05-21 16:43:03 +02:00
|
|
|
DOCS_GETSTARTED_URL = 'https://docs.offen.dev/running-offen/'
|
2020-10-28 21:31:50 +01:00
|
|
|
DOCS_GETSTARTED_URL_CAMPAIGN = 'https://docs.offen.dev/running-offen/?utm_campaign=get-started'
|
2020-05-21 16:43:03 +02:00
|
|
|
DOCS_TRYDEMO_URL = 'https://docs.offen.dev/running-offen/test-drive/'
|
2020-10-28 21:31:50 +01:00
|
|
|
DOCS_TRYDEMO_URL_CAMPAIGN = 'https://docs.offen.dev/running-offen/test-drive/?utm_campaign=try-demo'
|
2022-05-05 14:50:34 +02:00
|
|
|
LP_MATOMO_URL_TRY = ''
|
|
|
|
LP_MATOMO_URL_DOWNLOAD = ''
|
2019-09-27 20:49:44 +02:00
|
|
|
|
2020-01-08 13:45:51 +01:00
|
|
|
OFFEN_ACCOUNT_ID = os.environ.get('OFFEN_ACCOUNT_ID', None)
|