2017-07-06 14:28:42 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*- #
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2017-11-24 18:34:04 +01:00
|
|
|
AUTHOR = u'Varia'
|
|
|
|
SITENAME = u'Varia'
|
2018-02-01 16:26:03 +01:00
|
|
|
SITEURL = 'https://varia.zone'
|
2017-07-06 14:28:42 +02:00
|
|
|
|
|
|
|
PATH = 'content'
|
|
|
|
|
|
|
|
TIMEZONE = 'Europe/Amsterdam'
|
|
|
|
|
|
|
|
DEFAULT_LANG = u'nl'
|
2017-11-28 20:38:30 +01:00
|
|
|
DEFAULT_DATE = 'fs'
|
2017-11-28 19:37:21 +01:00
|
|
|
USE_FOLDER_AS_CATEGORY = True
|
2017-07-06 14:28:42 +02:00
|
|
|
|
|
|
|
# Feed generation is usually not desired when developing
|
2018-02-01 16:26:03 +01:00
|
|
|
FEED_DOMAIN = SITEURL
|
|
|
|
FEED_ALL_RSS = 'feeds/all.rss.xml'
|
2019-08-25 10:59:45 +02:00
|
|
|
TRANSLATION_FEED_RSS = 'feeds/all-%s.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
|
|
|
|
|
2019-05-13 22:30:22 +02:00
|
|
|
DEFAULT_PAGINATION = 100
|
2017-07-06 14:28:42 +02:00
|
|
|
|
|
|
|
# Uncomment following line if you want document-relative URLs when developing
|
2018-02-01 15:32:05 +01:00
|
|
|
PLUGIN_PATHS = ['./pelican-plugins', './plugins-custom']
|
2019-08-25 10:48:33 +02:00
|
|
|
PLUGINS = ['dateish', 'extract_toc', 'i18n_subsites', 'summary', 'events-ics','complex_footnotes', 'stream', 'thumbnailer']
|
2019-08-25 10:52:26 +02:00
|
|
|
|
2019-08-25 10:55:19 +02:00
|
|
|
MARKDOWN = {
|
|
|
|
'extension_configs': {
|
|
|
|
'markdown.extensions.codehilite': {'css_class': 'highlight'},
|
|
|
|
'markdown.extensions.extra': {},
|
|
|
|
'markdown.extensions.meta': {},
|
|
|
|
'markdown.extensions.toc': {
|
|
|
|
'marker': '[TOC]',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'output_format': 'html5',
|
|
|
|
}
|
2017-07-06 14:28:42 +02:00
|
|
|
|
2018-03-06 12:04:11 +01:00
|
|
|
STATIC_PATHS = ['extra/favicon.ico', 'images', 'pdfs', 'stream']
|
2017-07-06 14:28:42 +02:00
|
|
|
EXTRA_PATH_METADATA = {
|
2017-09-14 23:40:20 +02:00
|
|
|
'extra/robots.txt': {'path': 'robots.txt'},
|
|
|
|
'extra/favicon.ico': {'path': 'favicon.ico'},
|
|
|
|
'extra/htaccess': {'path': '.htaccess'}
|
|
|
|
}
|
2017-07-06 14:28:42 +02:00
|
|
|
|
2018-02-26 22:51:04 +01:00
|
|
|
THEME = 'themes/varia'
|
2017-10-24 10:50:06 +02:00
|
|
|
THEME_STATIC_DIR = 'theme/'
|
2017-07-07 14:14:16 +02:00
|
|
|
|
2017-09-14 23:40:20 +02:00
|
|
|
I18N_SUBSITES = {
|
|
|
|
'en': {
|
2017-11-24 18:34:04 +01:00
|
|
|
'SITESUBTITLE':u'Centre for Everyday Technology',
|
2018-02-26 23:26:08 +01:00
|
|
|
'SITEURL':'varia.zone/en/',
|
2017-11-24 18:34:04 +01:00
|
|
|
'locale':'en_US.UTF-8'
|
2017-09-14 23:40:20 +02:00
|
|
|
},
|
|
|
|
'nl': {
|
2019-08-25 10:48:43 +02:00
|
|
|
'SITESUBTITLE':u'Centrum voor Alledaagse Technologie',
|
2018-02-26 23:26:08 +01:00
|
|
|
'SITEURL':'varia.zone/',
|
2017-11-24 18:34:04 +01:00
|
|
|
'locale':'nl.UTF-8'
|
2017-09-14 23:40:20 +02:00
|
|
|
}
|
2018-03-06 12:04:11 +01:00
|
|
|
}
|
2018-03-06 16:54:52 +01:00
|
|
|
|
|
|
|
#Options for plugins
|
|
|
|
|
|
|
|
#Our custom events plugin
|
2017-11-28 19:37:21 +01:00
|
|
|
PLUGIN_EVENTS = {
|
2018-02-01 15:46:02 +01:00
|
|
|
'ics_calendars': ['events.ics', 'curriculum.ics'],
|
2017-11-28 19:37:21 +01:00
|
|
|
'default_location' : '',
|
2018-02-01 15:46:02 +01:00
|
|
|
'calendar_per_category': False
|
2018-02-01 13:06:58 +01:00
|
|
|
}
|
2018-02-01 15:16:37 +01:00
|
|
|
|
2018-03-06 16:54:52 +01:00
|
|
|
#Dateish plugin settings
|
2018-02-01 15:16:37 +01:00
|
|
|
DATEISH_PROPERTIES = ['event_start', 'event_end']
|
2018-03-06 21:42:19 +01:00
|
|
|
|
2018-03-06 16:54:52 +01:00
|
|
|
#Thumbnailer plugin settings
|
|
|
|
IMAGE_PATH ="images"
|
|
|
|
THUMBNAIL_KEEP_NAME = True
|
|
|
|
THUMBNAIL_DIR ="images"
|
2018-06-14 13:10:37 +02:00
|
|
|
THUMBNAIL_SIZES = {'thumb':'200x?', 'thumb2x':'400x?'}
|
|
|
|
|
|
|
|
# category url
|
|
|
|
CATEGORY_URL = '/{slug}.html'
|