pelicanconf.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. import filters
  5. AUTHOR = u'gitoyen'
  6. SITENAME = u'Gitoyen'
  7. SITEURL = ''
  8. PATH = 'content'
  9. TIMEZONE = 'Europe/Paris'
  10. DEFAULT_LANG = u'fr'
  11. # Feed generation is usually not desired when developing
  12. FEED_DOMAIN = 'https://gitoyen.net'
  13. FEED_ALL_ATOM = None
  14. FEED_ALL_RSS = 'feeds/all.rss.xml'
  15. CATEGORY_FEED_ATOM = None
  16. CATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml'
  17. TRANSLATION_FEED_ATOM = None
  18. AUTHOR_FEED_ATOM = None
  19. AUTHOR_FEED_RSS = None
  20. RSS_FEED_SUMMARY_ONLY = False
  21. # Social
  22. TWITTER_USERNAME = 'gitoyen'
  23. JINJA_FILTERS = {'is_active': filters.is_active}
  24. THEME = './theme'
  25. DEFAULT_PAGINATION = 10
  26. ARTICLE_PATHS = ['blog']
  27. ARTICLE_URL = 'blog/{slug}.html'
  28. ARTICLE_SAVE_AS = 'blog/{slug}.html'
  29. PAGE_URL = '{slug}.html'
  30. PAGE_SAVE_AS = '{slug}.html'
  31. INDEX_SAVE_AS = 'blog.html'
  32. PLUGIN_PATHS = ['plugins']
  33. PLUGINS = ['pelican-toc']
  34. STATIC_PATHS = ['images', 'extra/favicon.ico', 'upload' ]
  35. TOC = {
  36. 'TOC_HEADERS': '^h[2]',
  37. 'TOC_RUN': 'true'
  38. }
  39. MD_EXTENSIONS = ['attr_list', 'codehilite(css_class=highlight)', 'extra']
  40. # Uncomment following line if you want document-relative URLs when developing
  41. # RELATIVE_URLS = True
  42. EXTRA_PATH_METADATA = {
  43. 'extra/favicon.ico': {'path': 'favicon.ico'}
  44. }