diff -r 45ec3ccb276f -r 11b306ba3468 pelicanconf.py --- a/pelicanconf.py Wed Apr 11 23:17:04 2018 +0200 +++ b/pelicanconf.py Wed Apr 11 23:11:52 2018 +0200 @@ -10,6 +10,7 @@ TWITTER_USERNAME = u'douardda' CONTACTS = (('twitter', 'https://twitter.com/twttrAcc'),) + if _isprod: SITEURL = 'https://whatever.sdfa3.org' PIWIK = ''' @@ -80,9 +81,31 @@ 'pelican_dailymotion', 'pelican_javascript', 'wavedrom', + 'image_process', ] RESPONSIVE_IMAGES = True TYPOGRIPFY = True SINGLE_AUTHOR = True MINT = True SITEMAP = {'format': 'xml'} + +IMAGE_PROCESS = { + 'crisp': {'type': 'responsive-image', + 'srcset': [('1x', ['scale_in 800 600 True']), + ('2x', ['scale_in 1600 1200 True']), + ('3x', ['scale_in 3200 2400 True']), + ], + 'default': '1x', + }, + 'large-photo': {'type': 'responsive-image', + 'sizes': '(min-width: 1200px) 800px, (min-width: 992px) 650px, \ + (min-width: 768px) 718px, 100vw', + 'srcset': [('600w', ["scale_in 600 450 True"]), + ('800w', ["scale_in 800 600 True"]), + ('1600w', ["scale_in 1600 1200 True"]), + ], + 'default': '800w', + }, + } + +