2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 20:20:24 +02:00
website/homepage/pelicanconf.py

81 lines
2.7 KiB
Python
Raw Normal View History

2020-01-08 13:45:51 +01:00
import os
2019-10-02 11:13:26 +02:00
from datetime import datetime
from calendar import month_name
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'
2019-05-21 23:01:57 +02:00
SITENAME = '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'
2019-10-02 11:13:26 +02:00
BUILD_DATE = '{} {}'.format(month_name[datetime.today().month], datetime.today().year)
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
THEME = './theme'
2019-05-24 09:17:16 +02:00
# Delete the output directory before generating new files.
DELETE_OUTPUT_DIRECTORY = True
DIRECT_TEMPLATES = ['sitemap', 'archives']
# dont create following standard pages
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
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'
ARTICLE_SAVE_AS = 'blog/{slug}/index.html'
PLUGIN_PATHS = ['./plugins']
2019-12-06 16:55:54 +01:00
PLUGINS = ['decorate_content', 'assets']
2019-10-20 08:38:31 +02:00
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'],
2019-12-28 09:41:15 +01:00
'[data-button="yellow"]': ['brd-cclr-mid-yellow', 'fnt-cclr-mid-yellow'],
'[data-button="black"]': ['brd-cclr-mid-black', 'fnt-cclr-mid-black'],
2020-03-02 23:04:36 +01:00
'[data-button-mb5="black"]': ['brd-cclr-mid-black', 'fnt-cclr-mid-black'],
2019-12-28 09:41:15 +01:00
'a': ['link', 'b', 'dim'],
'a:not([data-button])': ['gray'],
2020-03-02 23:04:36 +01:00
'h1': ['f2', 'normal', 'lh-title', 'mt4', 'ma0', 'mb3', 'light-silver'],
'h2': ['f25', 'normal', 'lh-title', 'mt4', 'ma0', 'mb3', 'light-silver'],
2020-04-13 08:28:56 +02:00
'h3': ['f5', 'normal', 'mt5', 'ma0', 'mb3', 'fnt-cclr-mid-black'],
2020-03-02 23:04:36 +01:00
'h4': ['f5', 'normal', 'mt4', 'ma0', 'mb3'],
'h5': ['f5', 'b', 'mt4', 'ma0', 'mb1'], # text over button
'h6': ['f5', 'lh-solid', 'normal', 'ma0', 'mb3', 'light-silver'], # date
2019-12-27 23:09:42 +01:00
'p': ['ma0', 'pb3'],
'blockquote': ['f5', 'i', 'ma0', 'ml4-ns', 'ml3'],
2020-03-02 23:04:36 +01:00
'hr': ['mt5', 'mb3', 'b--black-05'],
'[spacer-4]': ['ma0', 'mb4']
2019-12-06 16:55:54 +01:00
}
2020-03-03 20:46:56 +01:00
DOCS_URL = 'https://docs.offen.dev'
2019-07-26 12:05:08 +02:00
GITHUB_ORG = 'https://github.com/offen'
2019-10-17 14:52:54 +02:00
CONTACT_EMAIL = 'hioffen@posteo.de'
GPG_KEY_FILE = '74B041E23DB29D552644CEB1B18C633D6967FE3F.asc'
PATREON_URL = 'https://www.patreon.com/offen'
LINKEDIN_URL = 'https://www.linkedin.com/company/hioffen'
TWITTER_URL = 'https://twitter.com/hioffen'
2020-02-22 21:14:53 +01:00
RELEASE_DIRECT_URL = 'https://get.offen.dev'
HEROKU_DIRECT_URL = 'https://heroku.com/deploy?template=https://github.com/offen/heroku/tree/master'
2020-01-08 13:45:51 +01:00
OFFEN_ACCOUNT_ID = os.environ.get('OFFEN_ACCOUNT_ID', None)