Le blog de Victor Héry
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.

93 lines
2.6 KiB

  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. AUTHOR = u'Victor'
  5. SITENAME = u'Blog de Victor Hery'
  6. SITEURL = ''
  7. DEFAULT_CATEGORY = 'Système'
  8. USE_FOLDER_AS_CATEGORY = False
  9. THEME='./theme'
  10. DIRECT_TEMPLATES = (('index', 'tags', 'categories','archives', 'search', '404'))
  11. LANDING_PAGE_ABOUT ={'title' : 'Je blog techniques, jardins et coups de gueule'}
  12. PATH = 'content'
  13. STATIC_PATHS = ['theme/images', 'images']
  14. ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}.html'
  15. ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}.html'
  16. SUMMARY_MAX_LENGTH = 50
  17. DEFAULT_PAGINATION = 4
  18. ### Plugins ###
  19. PLUGIN_PATHS = ['../pelican-plugins']
  20. PLUGINS = ['pelican_comment_system', 'extract_toc', 'sitemap']
  21. #sitemap
  22. SITEMAP = {
  23. 'format': 'xml',
  24. 'priorities': {
  25. 'articles': 0.5,
  26. 'indexes': 0.5,
  27. 'pages': 0.5
  28. },
  29. 'changefreqs': {
  30. 'articles': 'monthly',
  31. 'indexes': 'daily',
  32. 'pages': 'monthly'
  33. }
  34. }
  35. # Comments
  36. PELICAN_COMMENT_SYSTEM = True
  37. PELICAN_COMMENT_SYSTEM_IDENTICON_DATA = ('author',)
  38. PELICAN_COMMENT_SYSTEM_DIR = 'comments'
  39. PELICAN_COMMENT_SYSTEM_AUTHORS = {
  40. ('Victor',): "images/authors/face.png",
  41. ('victor',): "images/authors/face.png",
  42. ('victorhery',): "images/authors/face.png",
  43. }
  44. COMMENT_URL = "#comment_{slug}"
  45. COMMENTS_INTRO = "Si vous avez des questions, si quelque chose n'est pas clair, n'hésitez pas à commenter !"
  46. #Markdown PLUGINS
  47. MARKDOWN = {
  48. 'extension_configs': {
  49. 'markdown.extensions.codehilite': {'css_class': 'highlight'},
  50. 'markdown.extensions.extra': {},
  51. 'markdown.extensions.meta': {},
  52. 'markdown.extensions.toc': {},
  53. },
  54. 'output_format': 'html5',
  55. }
  56. TIMEZONE = 'Europe/Paris'
  57. DEFAULT_LANG = u'fr'
  58. # Feed generation is usually not desired when developing
  59. FEED_ALL_ATOM = None
  60. CATEGORY_FEED_ATOM = None
  61. TRANSLATION_FEED_ATOM = None
  62. AUTHOR_FEED_ATOM = None
  63. AUTHOR_FEED_RSS = None
  64. # Blogroll
  65. LINKS = (('Blog statique avec Pelican', 'http://getpelican.com/'),
  66. ('Un blog où l\'on parle d\'openvz, de QOS et d\'auto-hébergement', 'http://blog.developpeur-neurasthenique.fr/'),
  67. ('Projets OpenVZ-diff-backups', 'http://projets.developpeur-neurasthenique.fr/projects/openvz-diff-backups/'),
  68. ('Thème graphique Elegant', 'http://oncrashreboot.com/elegant-best-pelican-theme-features'),)
  69. # Social widget
  70. #SOCIAL = (('You can add links in your config file', '#'),
  71. # ('Another social link', '#'),)
  72. SOCIAL = ''
  73. DEFAULT_METADATA = {
  74. 'status': 'draft',
  75. 'lang': 'fr',
  76. }
  77. # Uncomment following line if you want document-relative URLs when developing
  78. #RELATIVE_URLS = True