pelicanconf.py 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. from pelican import __version__ as PELICAN_VERSION
  5. # Basic settings (http://docs.getpelican.com/en/stable/settings.html#basic-settings)
  6. DEFAULT_CATEGORY = 'Sin categoría'
  7. DELETE_OUTPUT_DIRECTORY = False
  8. DISPLAY_CATEGORIES_ON_MENU = True
  9. DISPLAY_PAGES_ON_MENU = True
  10. MARKDOWN = {
  11. 'extension_configs': {
  12. 'markdown.extensions.codehilite': {'css_class': 'highlight'},
  13. 'markdown.extensions.footnotes': {'BACKLINK_TITLE': 'Vuelve a la nota a %d en el texto'},
  14. 'markdown.extensions.extra': {},
  15. 'markdown.extensions.meta': {},
  16. },
  17. 'output_format': 'html5',
  18. }
  19. PATH = 'content'
  20. PLUGIN_PATHS = ['plugins']
  21. PLUGINS = ['another_read_more_link', 'neighbors', 'pelican-css', 'pelican-js', 'sitemap', 'tag-cloud', 'tipue-search']
  22. SITENAME = 'Freak Spot'
  23. SITEURL = 'https://freakspot.net'
  24. # URL settings (http://docs.getpelican.com/en/stable/settings.html#url-settings)
  25. RELATIVE_URLS = True
  26. ARTICLE_URL = '{slug}/'
  27. ARTICLE_SAVE_AS = '{slug}/index.html'
  28. CATEGORY_URL = 'category/{slug}/'
  29. CATEGORY_SAVE_AS = 'category/{slug}/index.html'
  30. CATEGORIES_URL = 'categories'
  31. CATEGORIES_SAVE_AS = 'categories/index.html'
  32. TAG_URL = 'tag/{slug}/'
  33. TAG_SAVE_AS = 'tag/{slug}/index.html'
  34. TAGS_URL = 'tags'
  35. TAGS_SAVE_AS = 'tags/index.html'
  36. AUTHOR_URL = 'author/{slug}/'
  37. AUTHOR_SAVE_AS = 'author/{slug}/index.html'
  38. YEAR_ARCHIVE_SAVE_AS = 'archives/{date:%Y}/index.html'
  39. MONTH_ARCHIVE_SAVE_AS = 'archives/{date:%Y}/{date:%m}/index.html'
  40. AUTHORS_URL = 'authors'
  41. AUTHORS_SAVE_AS = 'authors/index.html'
  42. ARCHIVES_URL = 'archives'
  43. ARCHIVES_SAVE_AS = 'archives/index.html'
  44. # use those if you want pelican standard pages to appear in your menu
  45. MENU_INTERNAL_PAGES = (
  46. ('Apoyo económico', 'pages/apoyo-economico.html', 'pages/apoyo-economico.html'),
  47. ('Archivos', ARCHIVES_URL, ARCHIVES_SAVE_AS),
  48. ('Autores', 'authors/', 'authors/'),
  49. ('Contacto', 'pages/contacto.html', 'pages/contacto.html'),
  50. ('Sobre Freak Spot', 'pages/acerca-de.html', 'pages/acerca-de.html'),
  51. )
  52. STATIC_PATHS = ['asciicasts', 'css', 'fonts', 'Jorge jorgesumle@freakspot.net (0x6A1408FE) pub.asc', 'js', 'wp-content']
  53. PAGE_EXCLUDES = ['asciicasts', 'css', 'fonts', 'js', 'wp-content']
  54. ARTICLE_EXCLUDES = ['asciicasts', 'css', 'fonts', 'js', 'wp-content']
  55. # Time and date (http://docs.getpelican.com/en/stable/settings.html#time-and-date)
  56. TIMEZONE = 'Europe/Madrid'
  57. LOCALE = ('es_ES.UTF-8')
  58. # Feed settings (http://docs.getpelican.com/en/stable/settings.html#feed-settings)
  59. # feed generation is usually not desired when developing, set to true in publishconf.py
  60. FEED_ALL_ATOM = None
  61. CATEGORY_FEED_ATOM = None
  62. AUTHOR_FEED_ATOM = None
  63. AUTHOR_FEED_RSS = None
  64. # Pagination (http://docs.getpelican.com/en/stable/settings.html#pagination)
  65. DEFAULT_PAGINATION = 5
  66. PAGINATION_PATTERNS = (
  67. (1, '{base_name}/', '{base_name}/index.html'),
  68. (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
  69. )
  70. PAGINATOR_LIMIT = 4
  71. # Translations (http://docs.getpelican.com/en/stable/settings.html#translations)
  72. DEFAULT_LANG = 'es'
  73. TRANSLATION_FEED_ATOM = None
  74. # Themes (http://docs.getpelican.com/en/stable/settings.html#themes)
  75. THEME = 'freak-theme/'
  76. SITESUBTITLE = 'Para gente libre'
  77. LINKS = (('Conocimientos libres', 'https://conocimientoslibres.tuxfamily.org/'),
  78. ('GNU', 'https://www.gnu.org/'),
  79. ('QuestionCopyright.org', 'http://questioncopyright.org/'),
  80. ('Riseup', 'https://riseup.net/es'),)
  81. SHOW_RECENT_POSTS = 5 # the number of recent posts to show
  82. # Plugins' configuration (not from Pelican core)
  83. TAG_CLOUD_STEPS = 5
  84. TAG_CLOUD_MAX_ITEMS = 53
  85. TAG_CLOUD_SORTING = 'random'
  86. TAG_CLOUD_BADGE = True
  87. SITEMAP = {
  88. 'format': 'xml',
  89. 'priorities': {
  90. 'articles': 0.5,
  91. 'indexes': 0.5,
  92. 'pages': 0.5
  93. },
  94. 'changefreqs': {
  95. 'articles': 'yearly',
  96. 'indexes': 'weekly',
  97. 'pages': 'yearly'
  98. }
  99. }
  100. ANOTHER_READ_MORE_LINK = 'Continúa leyendo <span class="screen-reader-text">{title}</span>'
  101. ANOTHER_READ_MORE_LINK_FORMAT = ' <a class="more-link" href="{url}#read_more_link">{text}</a>'