Le blog de Victor Héry https://blog.victor-hery.com
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.

96 lines
2.9 KiB

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