pelicanconf.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. AUTHOR = 'The Tester'
  5. SITENAME = 'Testing site'
  6. SITEURL = 'http://example.com/test'
  7. # to make the test suite portable
  8. TIMEZONE = 'UTC'
  9. DEFAULT_LANG = 'en'
  10. LOCALE = 'en_US.UTF-8'
  11. # Generate only one feed
  12. FEED_ALL_ATOM = 'feeds_all.atom.xml'
  13. CATEGORY_FEED_ATOM = None
  14. TRANSLATION_FEED_ATOM = None
  15. AUTHOR_FEED_ATOM = None
  16. AUTHOR_FEED_RSS = None
  17. # Disable unnecessary pages
  18. CATEGORY_SAVE_AS = ''
  19. TAG_SAVE_AS = ''
  20. AUTHOR_SAVE_AS = ''
  21. ARCHIVES_SAVE_AS = ''
  22. AUTHORS_SAVE_AS = ''
  23. CATEGORIES_SAVE_AS = ''
  24. TAGS_SAVE_AS = ''
  25. PLUGIN_PATHS = ['../../']
  26. PLUGINS = ['i18n_subsites']
  27. THEME = 'localized_theme'
  28. JINJA_EXTENSIONS = ['jinja2.ext.i18n']
  29. from blinker import signal
  30. tmpsig = signal('tmpsig')
  31. I18N_FILTER_SIGNALS = [tmpsig]
  32. I18N_SUBSITES = {
  33. 'de': {
  34. 'SITENAME': 'Testseite',
  35. 'AUTHOR': 'Der Tester',
  36. 'LOCALE': 'de_DE.UTF-8',
  37. },
  38. 'cz': {
  39. 'SITENAME': 'Testovací stránka',
  40. 'AUTHOR': 'Test Testovič',
  41. 'I18N_UNTRANSLATED_PAGES': 'remove',
  42. 'I18N_UNTRANSLATED_ARTICLES': 'keep',
  43. },
  44. }