pelicanconf.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. AUTHOR = u'vaeringjar'
  5. #AVATAR = 'avatar.png'
  6. SITENAME = u'Peers'
  7. SITEURL = ''
  8. PATH = 'content'
  9. TIMEZONE = 'America/Vancouver'
  10. DEFAULT_LANG = u'en'
  11. # Feed generation is usually not desired when developing
  12. FEED_ALL_ATOM = None
  13. CATEGORY_FEED_ATOM = None
  14. TRANSLATION_FEED_ATOM = None
  15. AUTHOR_FEED_ATOM = None
  16. AUTHOR_FEED_RSS = None
  17. SHOW_SIDEBAR = False
  18. # Blogroll
  19. LINKS = (
  20. # ('Pelican', 'http://getpelican.com/'),
  21. # ('Python.org', 'http://python.org/'),
  22. # ('Jinja2', 'http://jinja.pocoo.org/'),
  23. # ('You can modify those links in your config file', '#'),
  24. )
  25. # Social widget
  26. SOCIAL = (
  27. # ('You can add links in your config file', '#'),
  28. # ('Another social link', '#'),
  29. )
  30. DEFAULT_PAGINATION = 10
  31. # Uncomment following line if you want document-relative URLs when developing
  32. #RELATIVE_URLS = True
  33. ARTICLE_URL = 'archive/{date:%Y}{date:%m}{date:%d}/{slug}/'
  34. ARTICLE_SAVE_AS = 'archive/{date:%Y}{date:%m}{date:%d}/{slug}/index.html'
  35. #AUTHOR_URL = ''
  36. #AUTHOR_SAVE_AS = ''
  37. #CATEGORY_URL = 'category/{category}/'
  38. #CATEGORY_SAVE_AS = 'category/{category}/index.html'
  39. PAGE_URL = '{slug}/'
  40. PAGE_SAVE_AS = '{slug}/index.html'
  41. # Static paths for media
  42. PATH = 'content'
  43. STATIC_PATHS = [
  44. 'extra',
  45. 'media'
  46. ]
  47. EXTRA_PATH_METADATA = {
  48. 'media/hack.png': {'path': 'favicon.ico'},
  49. 'media/PeersCo_websitebanner_v3.png': {'path': 'banner.png'},
  50. 'media/glider-circles.svg': {'path': 'logo.svg'},
  51. 'extra/.htaccess': {'path': '.htaccess'},
  52. }