aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pelicanconf.py38
1 files changed, 27 insertions, 11 deletions
diff --git a/pelicanconf.py b/pelicanconf.py
index 7af03ce..c12c949 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
from pelican import __version__ as PELICAN_VERSION
+from jinja2 import Environment
# Basic settings (http://docs.getpelican.com/en/stable/settings.html#basic-settings)
DEFAULT_CATEGORY = 'Sin categoría'
@@ -14,17 +15,30 @@ MARKDOWN = {
'extension_configs': {
'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', 'compressor', 'i18n_subsites', 'neighbors', 'pelican-css-js', 'sitemap', 'tag-cloud', 'tipue-search']
+PLUGINS = [
+ 'another_read_more_link',
+ 'compressor',
+ 'i18n_subsites',
+ 'neighbors',
+ 'pelican-css-js',
+ 'sitemap',
+ 'tag-cloud',
+ 'tipue-search'
+]
+
# PAGE_PATHS = ['pages']
# PAGE_URL = 'pages/{slug}/'
# PAGE_SAVE_AS = 'pages/{slug}/index.html'
@@ -41,17 +55,17 @@ CATEGORY_URL = 'category/{slug}/'
CATEGORY_SAVE_AS = 'category/{slug}/index.html'
CATEGORIES_URL = 'categories/'
CATEGORIES_SAVE_AS = 'categories/index.html'
-TAG_URL = 'tag/{slug}/'
-TAG_SAVE_AS = 'tag/{slug}/index.html'
-TAGS_URL = 'tags/'
+TAG_URL = 'tag/{slug}/'
+TAG_SAVE_AS = 'tag/{slug}/index.html'
+TAGS_URL = 'tags/'
TAGS_SAVE_AS = 'tags/index.html'
-AUTHOR_URL = 'author/{slug}/'
-AUTHOR_SAVE_AS = 'author/{slug}/index.html'
+AUTHOR_URL = 'author/{slug}/'
+AUTHOR_SAVE_AS = 'author/{slug}/index.html'
YEAR_ARCHIVE_SAVE_AS = 'archives/{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = 'archives/{date:%Y}/{date:%m}/index.html'
-AUTHORS_URL = 'pages/créditos/'
+AUTHORS_URL = 'pages/créditos/'
AUTHORS_SAVE_AS = 'pages/créditos/index.html'
-ARCHIVES_URL = 'archives/'
+ARCHIVES_URL = 'archives/'
ARCHIVES_SAVE_AS = 'archives/index.html'
STATIC_PATHS = ['asciicasts', 'heckyel_pub.asc', 'robots.txt', 'wp-content']
PAGE_EXCLUDES = ['asciicasts', 'wp-content']
@@ -214,7 +228,9 @@ I18N_SUBSITES = {
'extension_configs': {
'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',