If an article does not have an explicit 'summary' in its metadata section, Pelican will by default output 50 words (SUMMARY_MAX_LENGTH = 50
) when {{ article.summary }}
is used. If the beginnings of an article contains a large image (in terms of dimensions), that large image would be included in the article summary.
This behavior may be a problem when the purpose of using {{ article.summary }}
is prevent the article from taking up too much space, especially when used on the site index page where all articles are listed.
Is there a way prevent the output of images in an article summary?
I am using Pelican 3.7.1.
Try using Summary plugin:
https://github.com/getpelican/pelican-plugins/tree/master/summary