Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share image on social media #223

Open
titipata opened this issue Feb 6, 2016 · 0 comments
Open

Share image on social media #223

titipata opened this issue Feb 6, 2016 · 0 comments

Comments

@titipata
Copy link

titipata commented Feb 6, 2016

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}} "/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant