Heuzef - Les notes excentriques d'un bidouilleur.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pelicanconf.py 3.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. SITENAME = 'Heuze Florent'
  5. SITEURL = 'https://heuzef.com'
  6. SITESUBTITLE = """
  7. Les notes excentriques d'un bidouilleur.
  8. """
  9. DEFAULT_PAGINATION = 5
  10. TYPOGRIFY = True
  11. LINKS = (
  12. ('<i class="fa fa-file"></i> mon cv', 'http://heuzef.link/cv'),
  13. )
  14. FOOTER_LINKS = (
  15. ('<i class="fa fa-home"></i> Accueil', 'index.html'),
  16. ('<i class="fa fa-cubes"></i> Catégories', 'categories.html'),
  17. ('<i class="fa fa-tags"></i> Tags', 'tags.html'),
  18. )
  19. AUTHOR = 'Heuzef'
  20. SITEIMAGE = "assets/logo_heuzef_hd.png"
  21. # Links
  22. ICONS = (
  23. ('linkedin', 'https://www.linkedin.com/in/heuzef/'),
  24. ('git', 'https://git.heuzef.com'),
  25. ('fas fa-heartbeat', 'https://status.heuzef.com'),
  26. ('fas fa-map', 'https://network.heuzef.com'),
  27. ('rss', 'https://heuzef.com/feeds/all.atom.xml'),
  28. )
  29. PATH = 'content'
  30. ARTICLE_PATHS = ['articles']
  31. ARTICLE_URL = 'notes/{slug}/'
  32. ARTICLE_SAVE_AS = 'notes/{slug}/index.html'
  33. CATEGORY_URL = 'category/{slug}/'
  34. CATEGORY_SAVE_AS = 'category/{slug}/index.html'
  35. TAG_URL = 'tag/{slug}/'
  36. TAG_SAVE_AS = 'tag/{slug}/index.html'
  37. AUTHOR_SAVE_AS = 'author/{slug}/index.html'
  38. AUTHOR_URL = 'author/{slug}/'
  39. STATIC_PATHS = ['assets', 'files']
  40. EXTRA_PATH_METADATA = {
  41. 'assets/android-chrome-72x72.png': {'path': 'android-chrome-72x72.png'},
  42. 'assets/browserconfig.xml': {'path': 'browserconfig.xml'},
  43. 'assets/favicon-32x32.png': {'path': 'favicon-32x32.png'},
  44. 'assets/mstile-150x150.png': {'path': 'mstile-150x150.png'},
  45. 'assets/site.webmanifest': {'path': 'site.webmanifest'},
  46. 'assets/apple-touch-icon.png': {'path': 'apple-touch-icon.png'},
  47. 'assets/favicon-16x16.png': {'path': 'favicon-16x16.png'},
  48. 'assets/favicon.ico': {'path': 'favicon.ico'},
  49. 'assets/safari-pinned-tab.svg': {'path': 'safari-pinned-tab.svg'},
  50. }
  51. PAGE_URL = 'page/{slug}/'
  52. # PAGE_SAVE_AS = 'page/{slug}/index.html'
  53. TIMEZONE = 'Europe/Paris'
  54. DEFAULT_LANG = 'fr'
  55. # Feed generation is usually not desired when developing
  56. FEED_ALL_ATOM = "feeds/all.atom.xml"
  57. TAG_FEED_ATOM = None
  58. CATEGORY_FEED_ATOM = None
  59. TRANSLATION_FEED_ATOM = None
  60. AUTHOR_FEED_ATOM = None
  61. AUTHOR_FEED_RSS = None
  62. THEME = 'theme/'
  63. PLUGIN_PATHS = ['plugins']
  64. PLUGINS = ['pelican-bootstrapify']
  65. BOOTSTRAPIFY = {
  66. 'table': ['table', 'table-striped', 'table-hover'],
  67. 'img': ['img-fluid'],
  68. 'blockquote': ['blockquote'],
  69. }
  70. DIRECT_TEMPLATES = ['index', 'tags', 'categories', 'sitemap']
  71. SITEMAP_SAVE_AS = 'sitemap.xml'
  72. # BOOTSTRAP_CSS: URL of Bootstrap CSS file. Use this to enable Boostwatch themes.
  73. # FONTAWESOME_CSS: URL of Font Awesome CSS file. Use this if you wish to use CDN provided version instead of the bundled one.
  74. PYGMENTS_STYLE = 'manni'
  75. HIDE_AUTHORS = True
  76. RFG_FAVICONS = True
  77. # THEME_CSS_OVERRIDES: Sequence of stylesheet URLs to override CSS provided by theme. Both relative and absolute URLs are supported.
  78. # THEME_JS_OVERRIDES: Sequence of JavaScript URLs to enable with this theme. Alchemy uses no JS by default. Both relative and absolute URLs are supported.