Varia's website, varia.zone or vvvvvvaria.org
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 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*- #
  3. from __future__ import unicode_literals
  4. AUTHOR = u'Varia'
  5. SITENAME = u'Varia'
  6. SITEURL = 'https://varia.zone'
  7. PATH = 'content'
  8. TIMEZONE = 'Europe/Amsterdam'
  9. DEFAULT_LANG = u'nl'
  10. DEFAULT_DATE = 'fs'
  11. USE_FOLDER_AS_CATEGORY = True
  12. # Feed generation is usually not desired when developing
  13. FEED_DOMAIN = SITEURL
  14. FEED_ALL_RSS = 'feeds/all.rss.xml'
  15. TRANSLATION_FEED_RSS = 'feeds/all-%s.rss.xml'
  16. RSS_FEED_SUMMARY_ONLY = False
  17. FEED_ALL_ATOM = None
  18. CATEGORY_FEED_ATOM = None
  19. CATEGORY_FEED_RSS = None
  20. TRANSLATION_FEED_ATOM = None
  21. AUTHOR_FEED_ATOM = None
  22. AUTHOR_FEED_RSS = None
  23. DEFAULT_PAGINATION = 25
  24. # Uncomment following line if you want document-relative URLs when developing
  25. PLUGIN_PATHS = ['./pelican-plugins', './plugins-custom']
  26. PLUGINS = ['dateish', 'extract_toc', 'i18n_subsites', 'summary', 'events-ics','complex_footnotes', 'stream', 'thumbnailer']
  27. MD_EXTENSIONS = ['codehilite','extra','toc']
  28. STATIC_PATHS = ['extra/favicon.ico', 'images', 'pdfs', 'stream']
  29. EXTRA_PATH_METADATA = {
  30. 'extra/robots.txt': {'path': 'robots.txt'},
  31. 'extra/favicon.ico': {'path': 'favicon.ico'},
  32. 'extra/htaccess': {'path': '.htaccess'}
  33. }
  34. THEME = 'themes/varia'
  35. THEME_STATIC_DIR = 'theme/'
  36. I18N_SUBSITES = {
  37. 'en': {
  38. 'SITESUBTITLE':u'Centre for Everyday Technology',
  39. 'SITEURL':'varia.zone/en/',
  40. 'locale':'en_US.UTF-8'
  41. },
  42. 'nl': {
  43. 'SITESUBTITLE':u'Centrum voor Alledaagse Technologie',
  44. 'SITEURL':'varia.zone/',
  45. 'locale':'nl.UTF-8'
  46. }
  47. }
  48. #Options for plugins
  49. #Our custom events plugin
  50. PLUGIN_EVENTS = {
  51. 'ics_calendars': ['events.ics', 'curriculum.ics'],
  52. 'default_location' : '',
  53. 'calendar_per_category': False
  54. }
  55. #Dateish plugin settings
  56. DATEISH_PROPERTIES = ['event_start', 'event_end']
  57. #Thumbnailer plugin settings
  58. IMAGE_PATH ="images"
  59. THUMBNAIL_KEEP_NAME = True
  60. THUMBNAIL_DIR ="images"
  61. THUMBNAIL_SIZES = {'thumb':'200x?', 'thumb2x':'400x?'}