pelicanconf.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. AUTHOR = u'Christopher Lemmer Webber'
  5. SITENAME = u'DustyCloud Brainstorms'
  6. SITEURL = ''
  7. TIMEZONE = 'US/Central'
  8. DEFAULT_LANG = u'en'
  9. # Feed generation is usually not desired when developing
  10. FEED_ALL_ATOM = None
  11. CATEGORY_FEED_ATOM = None
  12. TRANSLATION_FEED_ATOM = None
  13. # # Blogroll
  14. # LINKS = (('Pelican', 'http://getpelican.com/'),
  15. # ('Python.org', 'http://python.org/'),
  16. # ('Jinja2', 'http://jinja.pocoo.org/'),
  17. # ('You can modify those links in your config file', '#'),)
  18. # # Social widget
  19. # SOCIAL = (('You can add links in your config file', '#'),
  20. # ('Another social link', '#'),)
  21. DEFAULT_PAGINATION = 5
  22. # Uncomment following line if you want document-relative URLs when developing
  23. ARTICLE_URL = "blog/{slug}/"
  24. ARTICLE_SAVE_AS = "blog/{slug}/index.html"
  25. import os
  26. THEME = os.path.join(os.path.abspath(os.curdir), 'theme')
  27. TEMPLATE_PAGES = {
  28. "contact.html": "contact/index.html"
  29. }
  30. DIRECT_TEMPLATES = ('index', 'tags', 'categories', 'archives', 'blog')
  31. PAGINATED_DIRECT_TEMPLATES = ('index', 'blog')
  32. BLOG_SAVE_AS = 'blog/index.html'
  33. YEAR_ARCHIVE_SAVE_AS = 'blog/{date:%Y}/index.html'
  34. TAG_SAVE_AS = 'blog/tag/{slug}/index.html'
  35. TAG_URL = 'blog/tag/{slug}/'
  36. FEED_ALL_ATOM = 'blog/index.xml'
  37. FILENAME_METADATA = "(?P<slug>.*)"
  38. MARKUP = ('rst', 'html', 'md')
  39. SITEURL = "http://dustycloud.org"
  40. # THEME = "./theme/"