website-pelican/pelicanconf.py
2020-10-20 23:09:52 +02:00

90 lines
1.9 KiB
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Unit'
SITENAME = u'unit'
# SITEURL = 'https://unit.abbiamoundominio.org'
SITEURL = ''
SITELOGO = '/images/logo.png'
# SITESUBTITLE = ''
PATH = 'content'
PAGE_PATHS = ['pages']
ARTICLE_PATHS = ['blog']
STATIC_PATHS = ['images', 'media']
EXTRA_PATH_METADATA = {
'images/favicon.ico': {'path': 'favicon.ico'}
}
TIMEZONE = 'Europe/Rome'
DEFAULT_LANG = u'it'
DEFAULT_PAGINATION = 3
DEFAULT_DATE = 'fs'
DEFAULT_DATE_FORMAT = '%d %B %Y'
RSS_FEED_SUMMARY_ONLY = True
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
FEED_ALL_RSS = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
PLUGIN_PATHS = ['plugins/']
PLUGINS = ['events']
PLUGIN_EVENTS = {
'ics_fname': 'calendar.ics',
}
LINKS = None
SOCIAL = None
DEFAULT_PAGINATION = False
DEFAULT_METADATA = {'unit hacklab': 'This is a Game Planet'}
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
'output_format': 'html5',
}
WITH_FUTURE_DATES = False
THEME = 'themes/2017'
SLUGIFY_SOURCE = 'title'
PAGE_URL = '{slug}/index.html'
PAGE_SAVE_AS = '{slug}/index.html'
ARTICLE_URL = 'blog/{slug}.html'
ARTICLE_SAVE_AS = 'blog/{slug}.html'
INDEX_SAVE_AS = 'articles.html'
USE_FOLDER_AS_CATEGORY = True
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
DELETE_OUTPUT_DIRECTORY = True
MENUITEMS = (('HOME |', '/index.html'),
('NEWS |', '/articles.html'),
('CATEGORIE |', '/categories.html'),
('TAG |', '/tags.html'),
('CONTATTI |', '/contatti'),
('RSS', '/feed.xml'),)