manymanymany-varia-websites/pelicanconf.py

88 lines
1.8 KiB
Python
Raw Normal View History

2021-01-19 21:50:17 +01:00
AUTHOR = u"Varia"
SITENAME = u"Varia"
SITEURL = "https://varia.zone"
2017-07-06 14:28:42 +02:00
2021-01-19 21:50:17 +01:00
PATH = "content"
2017-07-06 14:28:42 +02:00
2021-01-19 21:50:17 +01:00
TIMEZONE = "Europe/Amsterdam"
2017-07-06 14:28:42 +02:00
2021-01-19 21:50:17 +01:00
DEFAULT_LANG = u"nl"
DEFAULT_DATE = "fs"
2017-11-28 19:37:21 +01:00
USE_FOLDER_AS_CATEGORY = True
2017-07-06 14:28:42 +02:00
2018-02-01 16:26:03 +01:00
FEED_DOMAIN = SITEURL
2021-01-19 21:50:17 +01:00
FEED_ALL_RSS = "feeds/all.rss.xml"
2021-01-19 22:04:44 +01:00
TRANSLATION_FEED_RSS = "feeds/all-{lang}.rss.xml"
2017-11-24 18:34:04 +01:00
RSS_FEED_SUMMARY_ONLY = False
2017-07-06 14:28:42 +02:00
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
2017-11-24 18:34:04 +01:00
CATEGORY_FEED_RSS = None
2017-07-06 14:28:42 +02:00
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
2022-04-22 21:32:27 +02:00
DEFAULT_PAGINATION = 10
2017-07-06 14:28:42 +02:00
2021-01-19 21:50:17 +01:00
PLUGIN_PATHS = ["./pelican-plugins", "./plugins-custom"]
2019-09-07 01:05:34 +02:00
PLUGINS = [
2021-01-19 21:50:17 +01:00
"dateish",
"extract_toc",
"i18n_subsites",
"summary",
"events-ics",
"complex_footnotes",
"thumbnailer",
2019-09-07 01:05:34 +02:00
]
MARKDOWN = {
2021-01-19 21:50:17 +01:00
"extension_configs": {
"markdown.extensions.codehilite": {"css_class": "highlight"},
"markdown.extensions.extra": {},
"markdown.extensions.meta": {},
"markdown.extensions.toc": {
"marker": "[TOC]",
},
},
2021-01-19 21:50:17 +01:00
"output_format": "html5",
}
2017-07-06 14:28:42 +02:00
2021-01-19 22:45:34 +01:00
STATIC_PATHS = ["extra/favicon.ico", "images"]
2017-07-06 14:28:42 +02:00
EXTRA_PATH_METADATA = {
2021-01-19 21:50:17 +01:00
"extra/robots.txt": {"path": "robots.txt"},
"extra/favicon.ico": {"path": "favicon.ico"},
"extra/htaccess": {"path": ".htaccess"},
2017-09-14 23:40:20 +02:00
}
2017-07-06 14:28:42 +02:00
2021-01-19 21:50:17 +01:00
THEME = "themes/varia"
THEME_STATIC_DIR = "theme/"
2017-09-14 23:40:20 +02:00
I18N_SUBSITES = {
2021-01-19 21:50:17 +01:00
"en": {
"SITESUBTITLE": u"",
2021-01-19 22:45:41 +01:00
"SITEURL": "varia.zone/en",
2021-01-19 21:50:17 +01:00
"locale": "en_US.UTF-8",
},
"nl": {
"SITESUBTITLE": u"",
2021-01-19 22:45:41 +01:00
"SITEURL": "varia.zone",
2021-01-19 21:50:17 +01:00
"locale": "nl.UTF-8",
},
}
2018-03-06 16:54:52 +01:00
2017-11-28 19:37:21 +01:00
PLUGIN_EVENTS = {
2021-01-19 21:50:17 +01:00
"ics_calendars": ["events.ics", "curriculum.ics"],
"default_location": "",
"calendar_per_category": False,
2018-02-01 13:06:58 +01:00
}
2021-01-19 21:50:17 +01:00
DATEISH_PROPERTIES = ["event_start", "event_end"]
2021-01-19 21:50:17 +01:00
IMAGE_PATH = "images"
2018-03-06 16:54:52 +01:00
THUMBNAIL_KEEP_NAME = True
2021-01-19 21:50:17 +01:00
THUMBNAIL_DIR = "images"
THUMBNAIL_SIZES = {"thumb": "200x?", "thumb2x": "400x?"}
2020-04-17 01:01:32 +02:00
2021-01-19 21:50:17 +01:00
CATEGORY_URL = "/{slug}.html"
2022-04-22 21:32:27 +02:00