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.

109 lines
3.3 KiB

  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. AUTHOR = 'Victor'
  4. AUTHORS = {
  5. "Victor": {
  6. "url": "https://blog.victor-hery.com",
  7. "blurb": "est le rédacteur principal du blog.",
  8. "avatar": "/images/authors/face.png",
  9. }
  10. }
  11. # SITENAME is on top of page
  12. SITENAME = 'Blog de Victor Héry'
  13. # SITESUBTITLE add a "SITENAME - SITESUBTITLE" line in footer
  14. SITESUBTITLE = ''
  15. SITEURL = ''
  16. DEFAULT_CATEGORY = 'Système'
  17. USE_FOLDER_AS_CATEGORY = False
  18. THEME = './theme'
  19. DIRECT_TEMPLATES = (('index', 'tags', 'categories','archives', 'search', '404'))
  20. 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 :-)'
  21. LANDING_PAGE_TITLE = "Je blog réseaux, système et jardins."
  22. PATH = 'content'
  23. STATIC_PATHS = ['images']
  24. ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}.html'
  25. ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}.html'
  26. SUMMARY_MAX_LENGTH = 50
  27. DEFAULT_PAGINATION = 4
  28. ### Plugins ###
  29. PLUGIN_PATHS = ['../pelican-plugins']
  30. PLUGINS = ['pelican_comment_system', 'extract_toc', 'sitemap', 'tipue_search']
  31. #sitemap
  32. SITEMAP = {
  33. 'format': 'xml',
  34. 'priorities': {
  35. 'articles': 0.5,
  36. 'indexes': 0.5,
  37. 'pages': 0.5
  38. },
  39. 'changefreqs': {
  40. 'articles': 'monthly',
  41. 'indexes': 'daily',
  42. 'pages': 'monthly'
  43. }
  44. }
  45. # Comments
  46. PELICAN_COMMENT_SYSTEM = True
  47. PELICAN_COMMENT_SYSTEM_IDENTICON_DATA = ('author',)
  48. PELICAN_COMMENT_SYSTEM_DIR = 'comments'
  49. PELICAN_COMMENT_SYSTEM_AUTHORS = {
  50. ('Victor',): "images/authors/face.png",
  51. ('victor',): "images/authors/face.png",
  52. ('victorhery',): "images/authors/face.png",
  53. }
  54. COMMENT_URL = "#comment_{slug}"
  55. COMMENTS_INTRO = "Si vous avez des questions, si quelque chose n'est pas clair, n'hésitez pas à commenter !"
  56. #Markdown PLUGINS
  57. MARKDOWN = {
  58. 'extension_configs': {
  59. 'markdown.extensions.codehilite': {'css_class': 'highlight'},
  60. 'markdown.extensions.extra': {},
  61. 'markdown.extensions.meta': {},
  62. 'markdown.extensions.toc': {},
  63. },
  64. 'output_format': 'html5',
  65. }
  66. TIMEZONE = 'Europe/Paris'
  67. DEFAULT_LANG = 'fr'
  68. # Feed generation is usually not desired when developing
  69. FEED_ALL_ATOM = 'feeds/all.atom.xml'
  70. CATEGORY_FEED_ATOM = None
  71. TRANSLATION_FEED_ATOM = None
  72. AUTHOR_FEED_ATOM = None
  73. AUTHOR_FEED_RSS = None
  74. # Blogroll
  75. LINKS = (('Blog statique avec Pelican', 'http://getpelican.com/'),
  76. ('Un blog où l\'on parle d\'openvz, de QOS et d\'auto-hébergement', 'http://blog.developpeur-neurasthenique.fr/'),
  77. ('Projets OpenVZ-diff-backups', 'http://projets.developpeur-neurasthenique.fr/projects/openvz-diff-backups/'),
  78. ('Thème graphique Elegant', 'http://oncrashreboot.com/elegant-best-pelican-theme-features'),)
  79. # Social widget
  80. SOCIAL = (
  81. ("RSS", SITEURL + "/feeds/all.atom.xml"),
  82. ("git", "https://git.lecygnenoir.info/LecygneNoir/blog.victor-hery.com"),
  83. ("keybase", "https://keybase.io/victorhery"),
  84. ("mastodon", "https://mamot.fr/@victorhery"),
  85. ("Twitter", "https://twitter.com/victorhery"),
  86. )
  87. SOCIAL_PROFILE_LABEL = "Restez en contact"
  88. DEFAULT_METADATA = {
  89. 'status': 'draft',
  90. 'lang': 'fr',
  91. }
  92. # Uncomment following line if you want document-relative URLs when developing
  93. #RELATIVE_URLS = True