forked from dan/minimo
105 lines
2.9 KiB
Python
105 lines
2.9 KiB
Python
|
#!/usr/bin/env python
|
||
|
# -*- coding: utf-8 -*- #
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
AUTHOR = 'random unit hacklab scriba'
|
||
|
#AUTHOR_URL = 'pages/info.html' # punta a una pagina invece che a una lista di post.
|
||
|
SITENAME = "unit minimo"
|
||
|
#SITESUBTITLE = 'un sottitolo'
|
||
|
SITEURL = '' # viene definito in publishconf.py
|
||
|
PORT = 8000
|
||
|
#BIND = ''
|
||
|
PATH = 'content'
|
||
|
TIMEZONE = 'Europe/Paris'
|
||
|
DEFAULT_LANG = 'it'
|
||
|
LOCALE = 'it_IT.utf8'
|
||
|
REVERSE_CATEGORY_ORDER = True
|
||
|
DEFAULT_PAGINATION = 3
|
||
|
DEFAULT_DATE = 'fs'
|
||
|
DEFAULT_DATE_FORMAT = '%d %B %Y'
|
||
|
|
||
|
# Feed generation attivata in publishconf.py
|
||
|
FEED_ALL_ATOM = None
|
||
|
CATEGORY_FEED_ATOM = None
|
||
|
TRANSLATION_FEED_ATOM = None
|
||
|
AUTHOR_FEED_ATOM = None
|
||
|
AUTHOR_FEED_RSS = None
|
||
|
|
||
|
FEED_MAX_ITEMS = 9
|
||
|
RSS_FEED_SUMMARY_ONLY = True
|
||
|
|
||
|
THEME = 'themes/minimo'
|
||
|
|
||
|
MENUITEMS = (('ARCHIVIO |', '/minimo/archives.html'),
|
||
|
('CATEGORIE |', '/minimo/categories.html'),
|
||
|
('TAG |', '/minimo/tags.html'),
|
||
|
('RSS |', '/minimo/feeds/all.rss.xml'),
|
||
|
('HOME', '../index.html'),)
|
||
|
|
||
|
#LINKS = (('titolo', 'https://eccetera'),
|
||
|
# ('in verità non sono in uso', 'https://eccetera'),
|
||
|
# ('infatti sono commentati', 'https://yayayaya'),)
|
||
|
|
||
|
#LINKS_WIDGET_NAME = 'INVECE CHE CHIAMARLI LINK'
|
||
|
|
||
|
# Settare su true solo in sviluppo, settare su falso o commentare in pubblicazione
|
||
|
#RELATIVE_URLS = True
|
||
|
|
||
|
DEFAULT_METADATA = {'unit hacklab': 'This is a Game Planet'}
|
||
|
|
||
|
# static paths will be copied without parsing their contents
|
||
|
STATIC_PATHS = [
|
||
|
'images',
|
||
|
'deep',
|
||
|
'media',
|
||
|
'media/robots.txt',
|
||
|
'media/favicon.ico',
|
||
|
]
|
||
|
|
||
|
EXTRA_PATH_METADATA = {
|
||
|
'media/robots.txt': {'path': 'robots.txt'},
|
||
|
'media/favicon.ico': {'path': 'favicon.ico'},
|
||
|
}
|
||
|
|
||
|
# custom page generated with a jinja2 template
|
||
|
#TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
|
||
|
|
||
|
## code blocks with line numbers
|
||
|
#PYGMENTS_RST_OPTIONS = {'linenos': 'table'}
|
||
|
#PYGMENTS_RST_OPTIONS = {'classprefix': 'pgcss', 'linenos': 'table'}
|
||
|
|
||
|
MARKDOWN = {
|
||
|
'extension_configs': {
|
||
|
'markdown.extensions.codehilite': {'css_class': 'highlight'},
|
||
|
'markdown.extensions.extra': {},
|
||
|
'markdown.extensions.meta': {},
|
||
|
},
|
||
|
'output_format': 'html5',
|
||
|
}
|
||
|
|
||
|
USE_FOLDER_AS_CATEGORY = True
|
||
|
DEFAULT_CATEGORY = 'pizzini'
|
||
|
DISPLAY_PAGES_ON_MENU = False
|
||
|
DISPLAY_CATEGORIES_ON_MENU = False
|
||
|
HIDE_CATEGORIES_FROM_MENU = True
|
||
|
|
||
|
## Se False, i post con data nel futuro sono dei draft, sennò li pubblica cmq.
|
||
|
WITH_FUTURE_DATES = False
|
||
|
|
||
|
OUTPUT_RETENTION = []
|
||
|
OUTPUT_RETENTION = [".hg", ".git", ".bzr"]
|
||
|
IGNORE_FILES = ['.#*']
|
||
|
|
||
|
#CHECK_MODIFIED_METHOD = 'mtime'
|
||
|
|
||
|
#ARTICLE_URL = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/'
|
||
|
#ARTICLE_URL = 'posts/{date:%Y}/{slug}/'
|
||
|
#ARTICLE_URL = '{date:%Y}/{category}/{slug}/'
|
||
|
|
||
|
#ARTICLE_SAVE_AS = 'posts/{date:%Y}/{date:%b}/{date:%d}/{slug}/index.html'
|
||
|
#ARTICLE_SAVE_AS = 'posts/{date:%Y}/{slug}/index.html'
|
||
|
#ARTICLE_SAVE_AS = '{author}-{slug}.html'
|
||
|
|
||
|
#PAGE_URL = 'pages/{slug}/'
|
||
|
#PAGE_SAVE_AS = 'pages/{slug}/index.html'
|