sitolost/pelicanconf.py

104 lines
2.3 KiB
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
AUTHOR = 'lost'
SITENAME = 'LOST'
SITEURL = 'http://lost.abbiamoundominio.org'
# TTT
BANNER= 'images/Logo500.png'
BANNER_SUBTITLE = ''
#SITELOGO = 'images/Logo500.png'
#SITELOGO_SIZE = 300
I18N_TEMPLATES_LANG = 'it'
CC_LICENSE="CC-BY"
DISPLAY_CATEGORIES_ON_MENU = False
DISPLAY_PAGES_ON_MENU = False
MENUITEMS = (
('Notizie', '/category/news.html'),
('Eventi', '/category/eventi.html'),
('Doc', '/category/documenti.html'),
('RFC', '/pages/rfc.html'),
('Podcast', '/tag/podcast.html'),
('Materiali', '/tag/materiali.html'),
('Contatti', '/pages/contatti.html'),
)
MARKDOWN = {
'extension_configs': {
'markdown.extensions.tables':{},
}
}
DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search')
PIWIK_URL = 'piwik.trecappelli.it'
PIWIK_SITE_ID = '12'
SUMMARY_MAX_LENGTH = 500
FAVORITES_TAG = 'top'
# TTT
PATH = 'content'
ARTICLE_PATHS = ['blog']
ARTICLE_SAVE_AS = '{date:%Y}/{slug}.html'
ARTICLE_URL = '{date:%Y}/{slug}.html'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'it'
# Feed generation is usually not desired when developing
FEED_DOMAIN = 'http://lost.abbiamoundominio.org'
FEED_MAX_ITEMS = 9
# ATOM
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
# RSS
TAG_FEED_RSS = None
CATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml'
AUTHOR_FEED_RSS = 'feeds/{slug}.arss.xml'
AUTHOR_FEED_RSS = None
FEED_RSS = 'feeds/rssp.xml'
RSS_FEED_SUMMARY_ONLY = True
# Blogroll
LINKS = (('RSS Feed', 'http://lost.abbiamoundominio.org/feeds/rssp.xml'),
('unit hacklab', 'https://unit.abbiamoundominio.org/'),
('Archivio Primo Moroni', 'http://www.inventati.org/apm'),)
# Social widget
#SOCIAL = (('You can add links in your config file', '#'),
# ('Another social link', '#'),)
DEFAULT_PAGINATION = 10
STATIC_PATHS = ['images', 'media', 'pdfs']
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['liquid_tags.audio',
'liquid_tags.img',
'liquid_tags.youtube',
'i18n_subsites',
'simple_footnotes',
'tipue_search',
'linker.mailto']
JINJA_ENVIRONMENT = {'extensions': ['jinja2.ext.i18n']}
# Theme
THEME = "pelican-themes/pelican-bootstrap3bis"