homebrewserver.club/pelicanconf.py

64 lines
1.4 KiB
Python
Raw Normal View History

2019-06-12 14:51:23 +02:00
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
2019-06-19 14:33:47 +02:00
AUTHOR = 'hbsc & friends'
2019-06-12 14:51:23 +02:00
SITENAME = 'homebrewserver.club'
2019-06-19 14:33:47 +02:00
SITEURL = 'https://homebrewserver.club'
2019-06-12 14:51:23 +02:00
PATH = 'content'
2019-06-12 15:47:03 +02:00
TIMEZONE = 'Europe/Amsterdam'
2019-06-12 14:51:23 +02:00
DEFAULT_LANG = 'en'
2019-06-19 14:33:47 +02:00
#FEED_ALL_ATOM = 'feeds/all.atom.xml'
#FEED_ALL_RSS = 'feeds/all.rss.xml'
2019-06-12 14:51:23 +02:00
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
2019-06-19 14:33:47 +02:00
DEFAULT_PAGINATION = 10
2019-06-12 14:51:23 +02:00
2019-06-12 15:08:48 +02:00
THEME = 'themes/homebrewtheme'
2019-06-12 16:16:22 +02:00
2019-06-19 14:33:47 +02:00
#Set static output paths
STATIC_PATHS = ['downloads', 'images', 'extra']
EXTRA_PATH_METADATA = {
'extra/robots.txt': {'path': 'robots.txt'},
'extra/favicon.ico': {'path': 'favicon.ico'},
'extra/htaccess': {'path': '.htaccess'}
}
#Pelican Plugins & Markdown extensions
2019-06-24 12:40:42 +02:00
PLUGIN_PATHS = ['plugins']
PLUGINS = ['extract_toc', 'summary','representative_image','addressable_paragraphs']
2019-06-19 14:33:47 +02:00
MARKDOWN = {'extensions':
['markdown.extensions.codehilite',
'markdown.extensions.extra',
'markdown.extensions.smarty',
'markdown.extensions.toc',
'markdown.extensions.attr_list'],
2019-06-19 14:33:47 +02:00
'extension_configs':
{'markdown.extensions.toc':{
'title':'Table Of Contents'}
}
}
2019-06-17 11:53:15 +02:00
DISPLAY_CATEGORIES_ON_MENU = True
MENUITEMS = [('Manifesto', '/')]
2019-06-19 14:33:47 +02:00
2019-06-19 15:06:21 +02:00
DELETE_OUTPUT_DIRECTORY = True
SLUG_REGEX_SUBSTITUTIONS = [
(r'\s', '-'),]
2019-08-14 16:28:58 +02:00
ARTICLE_ORDER_BY = 'slug'
2019-06-19 14:33:47 +02:00
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True