conf.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. import datetime
  8. CONFIG = {
  9. 'content_root': 'content', # where the markdown files are
  10. 'output_to': 'oz123.github.com',
  11. 'templates': 'templates',
  12. 'date_format': '%Y-%m-%d',
  13. 'base_url': 'http://oz123.github.com',
  14. 'http_port': 3030,
  15. 'content_encoding': 'utf-8',
  16. 'author': 'Oz Nahum Tiram',
  17. 'editor': 'editor'
  18. }
  19. # EDIT THIS PARAMETER TO CHANGE ARCHIVE SIZE
  20. # 0 Means that all the entries will be in the archive
  21. # 10 meas that all the entries except the last 10
  22. ARCHIVE_SIZE = 0
  23. GLOBAL_TEMPLATE_CONTEXT = {
  24. 'media_base': '/media/',
  25. 'media_url': '../media/',
  26. 'site_url': 'http://oz123.github.com',
  27. 'last_build': datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%SZ"),
  28. 'twitter': 'https://twitter.com/#!/OzNTiram',
  29. 'stackoverflow': "http://stackoverflow.com/users/492620/oz123",
  30. 'github': "https://github.com/oz123",
  31. }
  32. KINDS = {
  33. 'writing': {
  34. 'name': 'writing', 'name_plural': 'writings',
  35. },
  36. 'note': {
  37. 'name': 'note', 'name_plural': 'notes',
  38. },
  39. 'link': {
  40. 'name': 'link', 'name_plural': 'links',
  41. },
  42. 'photo': {
  43. 'name': 'photo', 'name_plural': 'photos',
  44. },
  45. 'page': {
  46. 'name': 'page', 'name_plural': 'pages',
  47. },
  48. }