1
0

conf.py 1.0 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': 'content', # where the markdown files are
  12. 'output_to': '.',
  13. 'templates': 'templates',
  14. 'date_format': '%Y-%m-%d',
  15. 'base_url': 'http://oz123.github.com',
  16. 'http_port': 3030,
  17. 'content_encoding': 'utf-8',
  18. 'author': 'Oz Nahum Tiram',
  19. 'editor': 'editor',
  20. 'ARCHIVE_SIZE': 10,
  21. 'INDEX_SIZE': 10, # How many entries shoud be in the INDEX
  22. }
  23. GLOBAL_TEMPLATE_CONTEXT = {
  24. 'media_base': '/media/',
  25. 'media_url': '../media/',
  26. 'site_url': 'http://oz123.github.com',
  27. 'twitter': 'https://twitter.com/#!/OzNTiram',
  28. 'stackoverflow': "http://stackoverflow.com/users/492620/oz123",
  29. 'github': "https://github.com/oz123",
  30. 'site_name': "Oz's Blog"
  31. }