This commit is contained in:
Jesús 2019-11-14 14:26:37 -05:00
parent 3f28d6e617
commit 8221736777
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -1,11 +1,12 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- # # -*- coding: utf-8 -*- #
from __future__ import unicode_literals from __future__ import unicode_literals
from pelican import __version__ as PELICAN_VERSION 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' DEFAULT_CATEGORY = 'Sin categoría'
DELETE_OUTPUT_DIRECTORY = False DELETE_OUTPUT_DIRECTORY = False
DISPLAY_CATEGORIES_ON_MENU = True DISPLAY_CATEGORIES_ON_MENU = True
@ -18,22 +19,37 @@ MARKDOWN = {
}, },
'markdown.extensions.codehilite': {'css_class': 'highlight'}, 'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {}, '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': {}, 'markdown.extensions.meta': {},
}, },
'output_format': 'html5', 'output_format': 'html5',
} }
# Fix issue with < and > characters (among others) being double-escaped # 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' PATH = 'content'
PLUGIN_PATHS = ['plugins'] 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 = 'Conocimientos Libres'
SITENAME_SINGLE = 'CL' SITENAME_SINGLE = 'CL'
SITEURL = 'https://conocimientoslibres.tuxfamily.org' 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 RELATIVE_URLS = True
ARTICLE_URL = '{slug}/' ARTICLE_URL = '{slug}/'
ARTICLE_SAVE_AS = '{slug}/index.html' ARTICLE_SAVE_AS = '{slug}/index.html'
@ -41,28 +57,39 @@ CATEGORY_URL = 'category/{slug}/'
CATEGORY_SAVE_AS = 'category/{slug}/index.html' CATEGORY_SAVE_AS = 'category/{slug}/index.html'
CATEGORIES_URL = 'categories/' CATEGORIES_URL = 'categories/'
CATEGORIES_SAVE_AS = 'categories/index.html' CATEGORIES_SAVE_AS = 'categories/index.html'
TAG_URL = 'tag/{slug}/' TAG_URL = 'tag/{slug}/'
TAG_SAVE_AS = 'tag/{slug}/index.html' TAG_SAVE_AS = 'tag/{slug}/index.html'
TAGS_URL = 'tags/' TAGS_URL = 'tags/'
TAGS_SAVE_AS = 'tags/index.html' TAGS_SAVE_AS = 'tags/index.html'
AUTHOR_URL = 'author/{slug}/' AUTHOR_URL = 'author/{slug}/'
AUTHOR_SAVE_AS = 'author/{slug}/index.html' AUTHOR_SAVE_AS = 'author/{slug}/index.html'
YEAR_ARCHIVE_SAVE_AS = 'archives/{date:%Y}/index.html' YEAR_ARCHIVE_SAVE_AS = 'archives/{date:%Y}/index.html'
MONTH_ARCHIVE_SAVE_AS = 'archives/{date:%Y}/{date:%m}/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' AUTHORS_SAVE_AS = 'pages/créditos/index.html'
ARCHIVES_URL = 'archives/' ARCHIVES_URL = 'archives/'
ARCHIVES_SAVE_AS = 'archives/index.html' 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'] PAGE_EXCLUDES = ['asciicasts', 'wp-content', 'vendor']
ARTICLE_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' TIMEZONE = 'Europe/Madrid'
LOCALE = ('es_ES.UTF-8') LOCALE = ('es_ES.UTF-8')
# Feed settings (http://docs.getpelican.com/en/stable/settings.html#feed-settings) # Feed settings
# feed generation is usually not desired when developing, set to true in publishconf.py # 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 FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None CATEGORY_FEED_ATOM = None
AUTHOR_FEED_ATOM = None AUTHOR_FEED_ATOM = None
@ -76,16 +103,17 @@ PAGINATION_PATTERNS = (
) )
PAGINATOR_LIMIT = 4 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' DEFAULT_LANG = 'es'
TRANSLATION_FEED_ATOM = None 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/' THEME = 'cl-theme/'
SITESUBTITLE = 'Sitio de información sobre Software Libre' SITESUBTITLE = 'Sitio de información sobre Software Libre'
SHOW_RECENT_POSTS = 3 # the number of recent posts to show SHOW_RECENT_POSTS = 3 # the number of recent posts to show
# Plugins' configuration (not from Pelican core) # Plugins' configuration (not from Pelican core)
TAG_CLOUD_STEPS = 5 TAG_CLOUD_STEPS = 5
TAG_CLOUD_MAX_ITEMS = 53 TAG_CLOUD_MAX_ITEMS = 53
@ -137,7 +165,9 @@ I18N_SUBSITES = {
}, },
'markdown.extensions.codehilite': {'css_class': 'highlight'}, 'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {}, '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': {}, 'markdown.extensions.meta': {},
}, },
'output_format': 'html5', 'output_format': 'html5',