constants.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. from enum import Enum
  2. class Exiv(Enum):
  3. DESCRIPTION = 'Exif.Image.ImageDescription'
  4. ARTIST = 'Exif.Image.Artist'
  5. DATETIME = 'Exif.Photo.DateTimeOriginal'
  6. HEADLINE = 'Iptc.Application2.Headline'
  7. COMMENT = 'Exif.Photo.UserComment'
  8. CAPTION = 'Iptc.Application2.Caption'
  9. KEYWORDS = 'Iptc.Application2.Keywords'
  10. CATEGORY = 'Iptc.Application2.SuppCategory'
  11. OBJECT_NAME = 'Iptc.Application2.ObjectName'
  12. class PelicanConfig(Enum):
  13. PATH = 'PATH'
  14. OUTPUT_PATH = 'OUTPUT_PATH'
  15. USE_FOLDER_AS_CATEGORY = 'USE_FOLDER_AS_CATEGORY'
  16. SITE_URL = 'SITEURL'
  17. PAGE_URL = 'PAGE_URL'
  18. PAGE_SAVE_AS = 'PAGE_SAVE_AS'
  19. ARTICLE_URL = 'ARTICLE_URL'
  20. ARTICLE_SAVE_AS = 'ARTICLE_SAVE_AS'
  21. class PelicanMetadata(Enum):
  22. TITLE = 'title'
  23. AUTHORS = 'authors'
  24. DATE = 'date'
  25. SLUG = 'slug'
  26. TAGS = 'tags'
  27. CATEGORY = 'category'
  28. SUMMARY = 'summary'
  29. FEATURED_IMAGE = 'featured_image' # Acts as a thumbnail
  30. TEMPLATE = 'template'
  31. CUSTOM_ALL = 'exiv2' # Not officially part of metadata, but we add it ourselves
  32. class PelicanClass(Enum):
  33. BLOG = 'blog'
  34. PAGES = 'pages'