pelicanconf.py 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. AUTHOR = 'Jorge Maldonado Ventura'
  5. SITENAME = 'Ducker'
  6. SITEURL = 'http://www.freakspot.net/programas/ducker'
  7. THEME = 'ducker-website-theme/'
  8. PATH = 'content'
  9. USE_FOLDER_AS_CATEGORY = True
  10. TIMEZONE = 'Europe/Madrid'
  11. DEFAULT_LANG = 'en'
  12. # Feed generation is usually not desired when developing
  13. FEED_ALL_ATOM = None
  14. CATEGORY_FEED_ATOM = None
  15. TRANSLATION_FEED_ATOM = 'feeds/all-%s.atom.xml'
  16. AUTHOR_FEED_ATOM = None
  17. AUTHOR_FEED_RSS = None
  18. # Social widget
  19. SOCIAL = (('NotABug', 'https://notabug.org/Ducker'),)
  20. DEFAULT_PAGINATION = 3
  21. # Uncomment following line if you want document-relative URLs when developing
  22. RELATIVE_URLS = True
  23. # Theme specific
  24. # all the following settings are *optional*
  25. # HTML metadata
  26. SITEDESCRIPTION = 'Ducker is a program that makes searches from the command line using DuckDuckGo. This is its website.'
  27. # all defaults to True.
  28. DISPLAY_HEADER = True
  29. DISPLAY_FOOTER = True
  30. DISPLAY_HOME = True
  31. DISPLAY_MENU = True
  32. # Documentation URL
  33. # Edit documentation in Ducker repository: https://notabug.org/Ducker/ducker
  34. DOCS_URL = 'docs'
  35. # Tags
  36. TAG_URL = 'tag/{slug}/'
  37. TAG_SAVE_AS = 'tag/{slug}/index.html'
  38. TAGS_URL = 'tags'
  39. TAGS_SAVE_AS = 'tags/index.html'
  40. # Authors
  41. AUTHOR_URL = 'author/{slug}/'
  42. AUTHOR_SAVE_AS = 'author/{slug}/index.html'
  43. AUTHORS_URL = 'authors'
  44. AUTHORS_SAVE_AS = 'authors/index.html'
  45. # Categories
  46. CATEGORY_URL = 'category/{slug}/'
  47. CATEGORY_SAVE_AS = 'category/{slug}/index.html'
  48. CATEGORIES_URL = 'categories'
  49. CATEGORIES_SAVE_AS = 'categories/index.html'
  50. ARCHIVES_URL = 'archives'
  51. ARCHIVES_SAVE_AS = 'archives/index.html'
  52. PAGINATION_PATTERNS = (
  53. (1, '{base_name}/', '{base_name}/index.html'),
  54. (2, '{base_name}/page/{number}/', '{base_name}/page/{number}/index.html'),
  55. )
  56. # use those if you want pelican standard pages to appear in your menu
  57. MENU_INTERNAL_PAGES = (
  58. ('Documentation', DOCS_URL, DOCS_URL + '/index.html'),
  59. ('Tags', TAGS_URL, TAGS_SAVE_AS),
  60. ('Archives', ARCHIVES_URL, ARCHIVES_SAVE_AS),
  61. )
  62. # Languages (useful if translations are used)
  63. LANGS = ['en', 'es']
  64. DATE_FORMATS = {
  65. 'en': '%Y-%m-%d',
  66. 'es': '%d/%m/%Y',
  67. }
  68. STATIC_PATHS = ['favicon.ico', 'favicon.png']