pelicanconf.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. AUTHOR = 'john melesky'
  2. SITENAME = "john's corner of the web"
  3. SITEURL = 'https://phaedrusdeinus.org'
  4. PATH = 'content'
  5. ARTICLE_PATHS = ['blog']
  6. ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
  7. ARTICLE_URL = '{date:%Y}/{date:%m}/{date:%d}/{slug}.html'
  8. TAGS_SAVE_AS = 'tags.html'
  9. TIMEZONE = 'US/Pacific'
  10. DEFAULT_LANG = 'en'
  11. THEME = '/home/jmelesky/code/pelican-sober'
  12. PLUGINS = ['render_math']
  13. MARKDOWN = {
  14. 'extensions': [
  15. 'markdown_captions',
  16. 'extra',
  17. 'codehilite',
  18. 'meta',
  19. 'sane_lists',
  20. 'smarty',
  21. 'legacy_em',
  22. 'legacy_attrs',
  23. ],
  24. }
  25. # Feed generation is usually not desired when developing
  26. FEED_ALL_ATOM = None
  27. CATEGORY_FEED_ATOM = None
  28. TRANSLATION_FEED_ATOM = None
  29. AUTHOR_FEED_ATOM = None
  30. AUTHOR_FEED_RSS = None
  31. EXTRA_PATH_METADATA = {
  32. 'extra/keybase.txt': {'path': 'keybase.txt'},
  33. 'extra/robots.txt': {'path': 'robots.txt'},
  34. 'extra/ai.txt': {'path': 'ai.txt'},
  35. 'extra/favicon.ico': {'path': 'favicon.ico'},
  36. }
  37. STATIC_PATHS = [
  38. 'images',
  39. 'extra/keybase.txt',
  40. 'extra/robots.txt',
  41. 'extra/ai.txt',
  42. 'extra/favicon.ico',
  43. ]
  44. SITE_NAV = (
  45. ('Home', ''),
  46. ('About', 'pages/about.html'),
  47. ('Work', 'pages/me-professionally.html'),
  48. ('Archive', 'archives.html'),
  49. )
  50. # Blogroll
  51. LINKS = ()
  52. # LINKS = (('Pelican', 'https://getpelican.com/'),
  53. # ('Python.org', 'https://www.python.org/'),
  54. # ('Jinja2', 'https://palletsprojects.com/p/jinja/'),
  55. # ('You can modify those links in your config file', '#'),)
  56. # Social widget
  57. SOCIAL = (
  58. ('Akkoma', 'https://tinylad.social/jmelesky'),
  59. ('LinkedIn', 'https://www.linkedin.com/in/jmelesky/'),
  60. )
  61. DEFAULT_PAGINATION = 5
  62. # Uncomment following line if you want document-relative URLs when developing
  63. RELATIVE_URLS = True