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
Cover image remains after being deleted #15233
Comments
Thanks for the issue, we will take it into consideration! Our team of engineers is busy working on many types of features, please give us time to get back to you. Feature requests that require more discussion may be closed. Read more about our feature request process on forem.dev. To our amazing contributors: issues labeled To claim an issue to work on, please leave a comment. If you've claimed the issue and need help, please ping @forem/oss. The OSS Community Manager or the engineers on OSS rotation will follow up. For full info on how to contribute, please check out our contributors guide. |
I can confirm this is happening as you described. It looks like leaving the cover_image: property blank in the front matter (removing the linked image) updates the post to have no cover image, and removing the cover_image property completely (as you described) leaves the existing cover image intact. It looks like this might be an issue with a special case around absent As a work-around, setting the front matter to include There was an earlier context around this behavior in #5687
It seems like the complication here is that articles could have had the main image/cover image set via the api, without adding a cover image to the front matter, and editing the body markdown (including the frontmatter, which never had a One fix for this could be to save some flag indicating whether the cover image was set via frontmatter or not, and clearing the image if it had been in the frontmatter but that key is now absent. |
would like to help out here. Please assign it to me if possible |
I assigned you this issue @vishaldeepak, thanks for volunteering! |
Describe the bug
If a blog post has a cover image, but then the Jekyll Front Matter information for the cover image is removed, the image remains for that blog post. Example of a post with this behavior (it shows a cover image, but the Jekyll Front Matter tag for cover image was deleted)
To Reproduce
These are the steps using the classic Markdown editor, not the WYSIWYG editor (I haven't tried on that one).
Expected behavior
If the Jekyll Front Matter value for cover_image is removed, the cover image should not be displayed.
Screenshots/Code
Original JFM code when creating a blank post:
After filling in all the information and uploading an image:
We published, so now we edit and remove the cover_image for the last step:
After that last change, the image will still remain in the post.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: