Skip to content

Add Hero image (in addition to post image) #114

Description

@sec-ml

Image defined in frontmatter is current shown on the post listing and at the top of the post. Top of post is wide and possibly distorts the image. Some images might be suitable for both views, but adding heroImage option will allow specifying.

If not set, image gets used to for heroImage
If image not set, but heroImage set, don't show image on post listing page but do show hero image on post page
As above but image explicitly null - override post fallback image settings, and don't show an image on post listing page.

For fallback images, automatic rules for -hero equivalents of an image if being used as fallback.
i.e. a post doesn't have any images set. But python tag would cause python.png to be fallback. If python-hero.png (or any extension?) exists, use that for hero image.

Unless a post's heroImage is an explicit null to prevent image showing on post page at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions