The source code for my blog at wxcafe.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pelicanconf.py 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. # Misc Settings
  5. AUTHOR = u'wxcafé'
  6. SITENAME = u'Wxcafé'
  7. SITEURL = '//wxcafe.net'
  8. TIMEZONE = 'Europe/Paris'
  9. DEFAULT_LANG = u'fr'
  10. DEFAULT_PAGINATION = 10
  11. THEME="./themes/pelican-clean-blog"
  12. HEADER_COVER = SITEURL + '/theme/cover.png'
  13. COLOR_SCHEME_CSS = 'monokai.css'
  14. # URL settings
  15. ARTICLE_URL = "posts/{slug}/"
  16. ARTICLE_SAVE_AS = "posts/{slug}/index.html"
  17. PAGE_URL = "pages/{slug}/"
  18. PAGE_SAVE_AS = "pages/{slug}/index.html"
  19. CATEGORY_URL = "category/{slug}/"
  20. CATEGORY_SAVE_AS = "category/{slug}/index.html"
  21. # Feeds settings
  22. FEED_RSS = "feeds/feed.rss.xml"
  23. FEED_ATOM = "feeds/feed.atom.xml"
  24. CATEGORY_FEED_ATOM = None
  25. AUTHOR_FEED_ATOM = None
  26. AUTHOR_FEED_RSS = None
  27. FEED_ALL_ATOM = None
  28. RSS_FEED_SUMMARY_ONLY = False
  29. MARKDOWN = {
  30. 'extension_configs': {
  31. 'markdown.extensions.codehilite': {
  32. 'linenums': False,
  33. 'guess_lang': True,
  34. 'noclasses': True,
  35. 'pygments_style': 'monokai'
  36. },
  37. 'markdown.extensions.smarty': {},
  38. 'markdown.extensions.extra': {},
  39. },
  40. 'output_format': 'html5',
  41. }
  42. # Social
  43. SOCIAL = (
  44. ('twitter', 'https://twitter.com/wxcafe'),
  45. ('pencil-square-o', 'https://social.wxcafe.net/@wxcafe'),
  46. ('git', 'https://git.wxcafe.net/wxcafe'),
  47. ('envelope', 'mailto://wxcafe@wxcafe.net'),
  48. ('key', 'https://pub.wxcafe.net/wxcafe.asc'),
  49. ('map-o', 'https://www.openstreetmap.org/node/2511020426'),
  50. ('code', 'https://git.wxcafe.net/wxcafe/blog-source'),
  51. )
  52. # Categories on right-side bar but not on top menu
  53. DISPLAY_CATEGORIES_ON_MENU = False
  54. DISPLAY_CATEGORIES_ON_BAR = True