pelicanconf.py 1.6 KB

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