website-pelican/pelicanconf.py

90 lines
1.9 KiB
Python
Raw Permalink Normal View History

2019-03-23 22:29:32 +01:00
#!/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'
2019-03-23 22:29:32 +01:00
# SITESUBTITLE = ''
PATH = 'content'
PAGE_PATHS = ['pages']
ARTICLE_PATHS = ['blog']
STATIC_PATHS = ['images', 'media']
2020-01-03 20:37:55 +01:00
EXTRA_PATH_METADATA = {
'images/favicon.ico': {'path': 'favicon.ico'}
}
2019-03-23 22:29:32 +01:00
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',
}
2019-03-23 22:29:32 +01:00
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
2020-10-20 22:47:41 +02:00
THEME = 'themes/2017'
2019-03-23 22:29:32 +01:00
2019-04-30 10:06:28 +02:00
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'
2019-03-23 22:29:32 +01:00
INDEX_SAVE_AS = 'articles.html'
USE_FOLDER_AS_CATEGORY = True
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = False
2019-11-20 02:55:34 +01:00
DELETE_OUTPUT_DIRECTORY = True
2020-10-21 00:25:15 +02:00
MENUITEMS = (('HOME', '/index.html'),
('NEWS', '/articles.html'),
('CATEGORIE', '/categories.html'),
('TAG', '/tags.html'),
('CONTATTI', '/contatti'),
('RSS', '/feed.xml'),)