8000 Allow implicit and explicit definition of the default image post · Issue #573 · poppastring/dasblog-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allow implicit and explicit definition of the default image post #573
Open
@poppastring

Description

@poppastring

The main image of a blog post is implicitly defined as the first image found in the HTML (see code here), we could make this more explicit in certain scenarios.

My suggestion is to ensure that the image can be identified by a pre-defined class name as follows:
<img class="hero-image" src="/someimge.jpg" >

The code should find this image regardless of where it is in the post and present it as the hero image.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0