From 6b6cd716f9c5f1f69dc33ac47ba334f236128074 Mon Sep 17 00:00:00 2001 From: ommot Date: Wed, 23 Oct 2019 14:23:10 +0200 Subject: [PATCH] Prova --- pelicanconf.py | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 pelicanconf.py diff --git a/pelicanconf.py b/pelicanconf.py new file mode 100644 index 0000000..efb3e5e --- /dev/null +++ b/pelicanconf.py @@ -0,0 +1,91 @@ +#!/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/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_ALL_ATOM = None +CATEGORY_FEED_ATOM = None +TRANSLATION_FEED_ATOM = None +AUTHOR_FEED_ATOM = None +AUTHOR_FEED_RSS = None + +# Blogroll +LINKS = (('UNIT HKLab', 'https://unit.abbiamoundominio.org/'), + ('APM', 'http://www.inventati.org/apm'), + ('Vecchio sito', 'http://lost.abbiamoundominio.org/wp'),) + +# 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" + +