conf.py 1.5 KB

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