Skip to content

Share image on social media #223

@titipata

Description

@titipata

Now, when I share the page on social media, it will pop up with hero image. It would be nice if it pops stack blog image up instead (I tried to find one but images folder is pretty big). I think we can change og tag in _layouts/default.html where right now is
<meta property="og:image" content="{{ page.hero }}"/> to if-else statement, something like this,

<meta property="og:image" content="{% if page.layout=='post' %} {{page.hero}} {% else %} {{path_to_default_image}} "/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions