nuovo sito fatto con pelican
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.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. AUTHOR = u'Unit'
  5. SITENAME = u'unit'
  6. # SITEURL = 'https://unit.abbiamoundominio.org'
  7. SITEURL = ''
  8. SITELOGO = '/images/logo.png'
  9. # SITESUBTITLE = ''
  10. PATH = 'content'
  11. PAGE_PATHS = ['pages']
  12. ARTICLE_PATHS = ['blog']
  13. STATIC_PATHS = ['images', 'media']
  14. TIMEZONE = 'Europe/Rome'
  15. DEFAULT_LANG = u'it'
  16. DEFAULT_PAGINATION = 3
  17. DEFAULT_DATE = 'fs'
  18. DEFAULT_DATE_FORMAT = '%d %B %Y'
  19. RSS_FEED_SUMMARY_ONLY = True
  20. # Feed generation is usually not desired when developing
  21. FEED_ALL_ATOM = None
  22. FEED_ALL_RSS = None
  23. CATEGORY_FEED_ATOM = None
  24. TRANSLATION_FEED_ATOM = None
  25. AUTHOR_FEED_ATOM = None
  26. AUTHOR_FEED_RSS = None
  27. PLUGIN_PATHS = ['plugins/']
  28. PLUGINS = ['events']
  29. PLUGIN_EVENTS = {
  30. 'ics_fname': 'calendar.ics',
  31. }
  32. LINKS = None
  33. SOCIAL = None
  34. DEFAULT_PAGINATION = False
  35. DEFAULT_METADATA = {'unit hacklab': 'This is a Game Planet'}
  36. # Uncomment following line if you want document-relative URLs when developing
  37. # RELATIVE_URLS = True
  38. MARKDOWN = {
  39. 'extension_configs': {
  40. 'markdown.extensions.codehilite': {'css_class': 'highlight'},
  41. 'markdown.extensions.extra': {},
  42. 'markdown.extensions.meta': {},
  43. },
  44. 'output_format': 'html5',
  45. }
  46. WITH_FUTURE_DATES = False
  47. THEME = 'themes/minimunit'
  48. SLUGIFY_SOURCE = 'title'
  49. PAGE_URL = '{slug}/index.html'
  50. PAGE_SAVE_AS = '{slug}/index.html'
  51. ARTICLE_URL = 'blog/{slug}.html'
  52. ARTICLE_SAVE_AS = 'blog/{slug}.html'
  53. INDEX_SAVE_AS = 'articles.html'
  54. USE_FOLDER_AS_CATEGORY = True
  55. DISPLAY_PAGES_ON_MENU = False
  56. DISPLAY_CATEGORIES_ON_MENU = False
  57. DELETE_OUTPUT_DIRECTORY = True
  58. MENUITEMS = (('HOME |', '/index.html'),
  59. ('NEWS |', '/articles.html'),
  60. ('CATEGORIE |', '/categories.html'),
  61. ('TAG |', '/tags.html'),
  62. ('CONTATTI |', '/contatti'),
  63. ('RSS', '/feed.xml'),)