pep8
This commit is contained in:
parent
3f28d6e617
commit
8221736777
@ -1,11 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*- #
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from pelican import __version__ as PELICAN_VERSION
|
||||
|
||||
|
||||
# Basic settings (http://docs.getpelican.com/en/stable/settings.html#basic-settings)
|
||||
# Basic settings
|
||||
# http://docs.getpelican.com/en/stable/settings.html#basic-settings
|
||||
DEFAULT_CATEGORY = 'Sin categoría'
|
||||
DELETE_OUTPUT_DIRECTORY = False
|
||||
DISPLAY_CATEGORIES_ON_MENU = True
|
||||
@ -18,22 +19,37 @@ MARKDOWN = {
|
||||
},
|
||||
'markdown.extensions.codehilite': {'css_class': 'highlight'},
|
||||
'markdown.extensions.extra': {},
|
||||
'markdown.extensions.footnotes': {'BACKLINK_TITLE': 'Volver a la nota %d en el texto'},
|
||||
'markdown.extensions.footnotes': {
|
||||
'BACKLINK_TITLE': 'Volver a la nota %d en el texto'
|
||||
},
|
||||
'markdown.extensions.meta': {},
|
||||
},
|
||||
'output_format': 'html5',
|
||||
}
|
||||
# Fix issue with < and > characters (among others) being double-escaped
|
||||
# Bug report in markdown/extensions/codehilite.py → https://github.com/Python-Markdown/markdown/pull/726/files
|
||||
# Bug report in markdown/extensions/codehilite.py
|
||||
# https://github.com/Python-Markdown/markdown/pull/726/files
|
||||
|
||||
PATH = 'content'
|
||||
PLUGIN_PATHS = ['plugins']
|
||||
PLUGINS = ['another_read_more_link', 'extract_toc', 'i18n_subsites', 'neighbors', 'pelican-css', 'pelican-js', 'sitemap', 'tag-cloud', 'tipue-search']
|
||||
PLUGINS = [
|
||||
'another_read_more_link',
|
||||
'extract_toc',
|
||||
'i18n_subsites',
|
||||
'neighbors',
|
||||
'pelican-css',
|
||||
'pelican-js',
|
||||
'sitemap',
|
||||
'tag-cloud',
|
||||
'tipue-search'
|
||||
]
|
||||
|
||||
SITENAME = 'Conocimientos Libres'
|
||||
SITENAME_SINGLE = 'CL'
|
||||
SITEURL = 'https://conocimientoslibres.tuxfamily.org'
|
||||
|
||||
# URL settings (http://docs.getpelican.com/en/stable/settings.html#url-settings)
|
||||
# URL settings
|
||||
# http://docs.getpelican.com/en/stable/settings.html#url-settings
|
||||
RELATIVE_URLS = True
|
||||
ARTICLE_URL = '{slug}/'
|
||||
ARTICLE_SAVE_AS = '{slug}/index.html'
|
||||
@ -53,16 +69,27 @@ AUTHORS_URL = 'pages/créditos/'
|
||||
AUTHORS_SAVE_AS = 'pages/créditos/index.html'
|
||||
ARCHIVES_URL = 'archives/'
|
||||
ARCHIVES_SAVE_AS = 'archives/index.html'
|
||||
STATIC_PATHS = ['.htaccess', 'asciicasts', 'heckyel_pub.asc', 'robots.txt', 'wp-content', 'vendor']
|
||||
STATIC_PATHS = [
|
||||
'.htaccess',
|
||||
'asciicasts',
|
||||
'heckyel_pub.asc',
|
||||
'robots.txt',
|
||||
'wp-content',
|
||||
'vendor'
|
||||
]
|
||||
|
||||
PAGE_EXCLUDES = ['asciicasts', 'wp-content', 'vendor']
|
||||
ARTICLE_EXCLUDES = ['asciicasts', 'wp-content', 'vendor']
|
||||
|
||||
# Time and date (http://docs.getpelican.com/en/stable/settings.html#time-and-date)
|
||||
# Time and date
|
||||
# http://docs.getpelican.com/en/stable/settings.html#time-and-date
|
||||
TIMEZONE = 'Europe/Madrid'
|
||||
LOCALE = ('es_ES.UTF-8')
|
||||
|
||||
# Feed settings (http://docs.getpelican.com/en/stable/settings.html#feed-settings)
|
||||
# feed generation is usually not desired when developing, set to true in publishconf.py
|
||||
# Feed settings
|
||||
# http://docs.getpelican.com/en/stable/settings.html#feed-settings
|
||||
# feed generation is usually not desired when developing,
|
||||
# set to true in publishconf.py
|
||||
FEED_ALL_ATOM = None
|
||||
CATEGORY_FEED_ATOM = None
|
||||
AUTHOR_FEED_ATOM = None
|
||||
@ -76,16 +103,17 @@ PAGINATION_PATTERNS = (
|
||||
)
|
||||
PAGINATOR_LIMIT = 4
|
||||
|
||||
# Translations (http://docs.getpelican.com/en/stable/settings.html#translations)
|
||||
# Translations
|
||||
# http://docs.getpelican.com/en/stable/settings.html#translations
|
||||
DEFAULT_LANG = 'es'
|
||||
TRANSLATION_FEED_ATOM = None
|
||||
|
||||
# Themes (http://docs.getpelican.com/en/stable/settings.html#themes)
|
||||
# Themes
|
||||
# http://docs.getpelican.com/en/stable/settings.html#themes
|
||||
THEME = 'cl-theme/'
|
||||
SITESUBTITLE = 'Sitio de información sobre Software Libre'
|
||||
SHOW_RECENT_POSTS = 3 # the number of recent posts to show
|
||||
|
||||
|
||||
# Plugins' configuration (not from Pelican core)
|
||||
TAG_CLOUD_STEPS = 5
|
||||
TAG_CLOUD_MAX_ITEMS = 53
|
||||
@ -137,7 +165,9 @@ I18N_SUBSITES = {
|
||||
},
|
||||
'markdown.extensions.codehilite': {'css_class': 'highlight'},
|
||||
'markdown.extensions.extra': {},
|
||||
'markdown.extensions.footnotes': {'BACKLINK_TITLE': 'Jump back to footnote %d in the text'},
|
||||
'markdown.extensions.footnotes': {
|
||||
'BACKLINK_TITLE': 'Jump back to footnote %d in the text'
|
||||
},
|
||||
'markdown.extensions.meta': {},
|
||||
},
|
||||
'output_format': 'html5',
|
||||
|
Loading…
x
Reference in New Issue
Block a user