conf.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. """
  2. Blogit configuration module.
  3. Following projects like sphinx or django this project, chooses
  4. python code as a configuration language instead of choosing the
  5. ini, yaml, or what ever DSL for configuration.
  6. """
  7. # ARCHIVE SIZE
  8. # 0 Means that all the entries will be in the archive
  9. # 10 meas that all the entries except the last 10
  10. CONFIG = {
  11. 'content_root': 'test_root', # where the markdown files are
  12. 'output_to': 'oz123.github.com',
  13. 'raw_content': 'oz123.github.com/writings_raw/content',
  14. 'templates': 'templates',
  15. 'date_format': '%Y-%m-%d',
  16. 'base_url': 'http://oz123.github.com',
  17. 'http_port': 3030,
  18. 'content_encoding': 'utf-8',
  19. 'author': 'Oz Nahum Tiram',
  20. 'editor': 'editor',
  21. 'ARCHIVE_SIZE': 10,
  22. 'INDEX_SIZE': 10, # How many entries shoud be in the INDEX
  23. }
  24. GLOBAL_TEMPLATE_CONTEXT = {
  25. 'media_base': '/media/',
  26. 'media_url': '../media/',
  27. 'site_url': 'http://oz123.github.com',
  28. 'twitter': 'https://twitter.com/#!/OzNTiram',
  29. 'stackoverflow': "http://stackoverflow.com/users/492620/oz123",
  30. 'github': "https://github.com/oz123",
  31. }