VaibhavSaini19 / BootBlox

Ready-to-use Bootstrap CSS blocks
MIT License
26 stars 15 forks source link

Display thumbnails dynamically #35

Closed VaibhavSaini19 closed 4 years ago

VaibhavSaini19 commented 4 years ago

🚀 Feature

Currently, a temporary thumbnail is being used for all the code blocks by hard coding the source attribute of the image. This can be made dynamic, by checking if the corresponding thumbnail for the code block is available or not. If yes, then use that, otherwise use the temporary thumbnail.

Have you spent some time to check if this issue has been raised before?

Yes. Similar issue doesn't exist

Have you read the Contributing Guidelines?

Yes

Pitch

This would ensure that all the thumbnails added are displayed properly and the categories for which thumbnails have not been added yet, only those will have the temporary thumbnail

erinknight242 commented 4 years ago

@VaibhavSaini19 can I have this one next? Would you like the dynamic replacement to assume that the image names follow the convention, or code the full image name for each like I did previously?

VaibhavSaini19 commented 4 years ago

@erinknight242 yes, the thumbnails follow the name convention, so it needs to be checked if the corresponding thumbnail for a code block is present or not