Homebrewserver.club website https://homebrewserver.club/
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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. AUTHOR = 'hbsc & friends'
  5. SITENAME = 'homebrewserver.club'
  6. SITEURL = 'https://homebrewserver.club'
  7. PATH = 'content'
  8. TIMEZONE = 'Europe/Amsterdam'
  9. DEFAULT_LANG = 'en'
  10. #FEED_ALL_ATOM = 'feeds/all.atom.xml'
  11. #FEED_ALL_RSS = 'feeds/all.rss.xml'
  12. FEED_ALL_ATOM = None
  13. CATEGORY_FEED_ATOM = None
  14. TRANSLATION_FEED_ATOM = None
  15. AUTHOR_FEED_ATOM = None
  16. AUTHOR_FEED_RSS = None
  17. DEFAULT_PAGINATION = 10
  18. THEME = 'themes/homebrewtheme'
  19. #Set static output paths
  20. STATIC_PATHS = ['downloads', 'images', 'extra']
  21. EXTRA_PATH_METADATA = {
  22. 'extra/robots.txt': {'path': 'robots.txt'},
  23. 'extra/favicon.ico': {'path': 'favicon.ico'},
  24. 'extra/htaccess': {'path': '.htaccess'}
  25. }
  26. #Pelican Plugins & Markdown extensions
  27. PLUGIN_PATHS = ['plugins']
  28. PLUGINS = ['extract_toc', 'summary','representative_image','addressable_paragraphs']
  29. MARKDOWN = {'extensions':
  30. ['markdown.extensions.codehilite',
  31. 'markdown.extensions.extra',
  32. 'markdown.extensions.smarty',
  33. 'markdown.extensions.toc',
  34. 'markdown.extensions.attr_list'],
  35. 'extension_configs':
  36. {'markdown.extensions.toc':{
  37. 'title':'Table Of Contents'}
  38. }
  39. }
  40. DISPLAY_CATEGORIES_ON_MENU = True
  41. MENUITEMS = [('Manifesto', '/')]
  42. DELETE_OUTPUT_DIRECTORY = True
  43. SLUG_REGEX_SUBSTITUTIONS = [
  44. (r'\s', '-'),]
  45. ARTICLE_ORDER_BY = 'slug'
  46. # Uncomment following line if you want document-relative URLs when developing
  47. #RELATIVE_URLS = True