boh717 / beautiful-ghost

Theme for Ghost blogging platform
MIT License
36 stars 20 forks source link

Is it possible to remove the post header image? #1

Closed dinchamion closed 7 years ago

dinchamion commented 7 years ago

I love this theme, it takes Steam just a bit further with the permanent menu bar. :-)

Would it be possible to remove the header images on the posts, though? I'd prefer only having them in rich embeds.

boh717 commented 7 years ago

Hi, thank you! If I understand correctly, just do not upload any image for your post and the theme will do the rest.

In header_post_page.hbs you can see that there's a style for an image and a style without it ({{#if image}} ... {{else}}).

Just let me know if I answered your question.

dinchamion commented 7 years ago

Sorry for the misunderstanding!

I do want to upload a meta image (so it shows up in rich embeds on social media) but I'd like the theme not to display it.

Not sure what I need to remove or modify for that.

boh717 commented 7 years ago

For meta image, you mean one like this? http://deanattali.com/beautiful-jekyll/2015-02-26-flake-it-till-you-make-it/

But you don't want it to be showed?

dinchamion commented 7 years ago

Yep, exactly. It's useful for me when sharing the post, but breaks the simplicity of the theme for my taste.

The greatest would be if it was a "toggleable" thing (like adding/removing the '!' from elements) of course, but if I could just remove the corresponding part from the code that accomplishes it more directly. :-)

boh717 commented 7 years ago

I never thought about having it only for sharing, cool :)

The file that handles the post image is header_post_page.hbs.

Take a look at it and see if you find out a solution :)

dinchamion commented 7 years ago

I will! ;-) Stay tuned. :-)

boh717 commented 7 years ago

Feel free to make a pull request :)

dinchamion commented 7 years ago

Done! :-) (I just hope I didn't mess up with the pull request. :-) ) #2