What drives the sizing of images on the front page of the Magazine layout?
I've tried a few things to see if I can affect what makes some thumbs large and some small, but haven't figured out what the pattern might be.
One entry has a single image and its thumb is small on the front page, another entry has a single image and its thumb is large on the front page.
The source code for the front page of the Magazine template is available on GitHub.
Thumbnail size varies based on whether the entry has a 'summary' property, generated from its first sentence.
Does that help? Please let me know if you have any questions about this or anything else.
Answered 3 years ago · Edit answerIs there a way to stop reducing the size of thumbnails in entries with images and text? (Whether it keeps generating a summary or not)
Answered 2 years ago · Edit answerYes, you'll need to remove some of the template code which reduces the size of the thumbnail when the post contains text to make this work. Specifically remove from entry_line.html the following:
- everything between lines 16-31, which contained the conditional block for posts with a summary
- line 33, which opened the conditional block for posts without a summary
- line 43, which closed the conditional block for posts without a summary