sitolost/pelicanconf.py
2020-04-13 15:12:39 +02:00

120 lines
2.9 KiB
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import os
AUTHOR = 'lost'
SITENAME = 'LOST'
SITEURL = ''
# 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/3-news.html'),
('Eventi', '/category/1-eventi.html'),
('Doc', '/category/2-documenti.html'),
('RFC', '/pages/rfc.html'),
('Podcast', '/tag/podcast.html'),
('Materiali', '/tag/materiali.html'),
('Archivio notizie', '/category/news-archive.html'),
('Contatti', '/pages/contatti.html'),
)
MARKDOWN = {
'extension_configs': {
'markdown.extensions.tables':{},
}
}
DIRECT_TEMPLATES = ('index', 'categories', 'authors', 'archives', 'search')
# template
#HIDE_SIDEBAR = True
DISPLAY_CATEGORIES_ON_SIDEBAR = True
PYGMENTS_STYLE = 'monokai'
PIWIK_URL = 'matomo.gets-it.net'
PIWIK_SITE_ID = '7'
#BOOTSTRAP_FLUID = 'True'
CUSTOM_CSS = 'static/custom.css'
PYGMENTS_STYLE='emacs'
SUMMARY_MAX_LENGTH = 200
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 = 'https://lost.abbiamoundominio.org'
FEED_MAX_ITEMS = 9
# ATOM
# FEED_ALL_ATOM = None
# CATEGORY_FEED_ATOM = None
# TRANSLATION_FEED_ATOM = None
# AUTHOR_FEED_ATOM = None
# FEED_ATOM = 'feeds/atomp.xml'
# RSS
# TAG_FEED_RSS = None
# AUTHOR_FEED_RSS = None
# FEED_RSS = 'feeds/rssp.xml'
FEED_ALL_ATOM = 'feeds.atom.xml'
FEED_ALL_RSS = 'feed.xml'
TAG_FEED_ATOM = 'feeds/feed.{slug}.atom.xml'
RSS_FEED_SUMMARY_ONLY = True
# Blogroll
LINKS = (('RSS Feed', 'https://lost.abbiamoundominio.org/feed.xml'),
('unit hacklab', 'https://unit.abbiamoundominio.org/'),
('Archivio Primo Moroni', 'http://www.inventati.org/apm'),
('LOST su Internet Archive','https://archive.org/details/@lost18'))
# Social widget
#SOCIAL = (('You can add links in your config file', '#'),
# ('Another social link', '#'),)
DEFAULT_PAGINATION = 10
STATIC_PATHS = ['images', 'media', 'pdfs', 'extra/custom.css']
# Tell Pelican to change the path to 'static/custom.css' in the output dir
EXTRA_PATH_METADATA = {
'extra/custom.css': {'path': 'static/custom.css'}
}
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
PLUGIN_PATHS = ['pelican-plugins']
PLUGINS = ['liquid_tags.audio',
'liquid_tags.video',
'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"