gethugothemes / parsa-hugo

Parsa is a personal blog theme powered by Hugo. It also can be used for portfolio website.
https://gethugothemes.com/products/parsa/?utm_source=parsa_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
157 stars 321 forks source link

Is it possible to add or remove class="rounded" from the image of a particular article? #20

Closed newt0 closed 4 years ago

newt0 commented 4 years ago

Is it possible to add or remove class="rounded" from the image of a particular article?

I'd like to add class="rounded" to the image in the article introducing the product, while in the column, I'd like to focus on the text of the article without making the image stand out

somratpro commented 4 years ago

I can't get your problem properly. By the way, if you want to remove this class from a particular post, then you need to do some tweaks with Hugo. You can set if condition on the class, so when you enable it on the post frontmatter only then it will add to your post.

newt0 commented 4 years ago

Sorry, I misspokefloat-left as rounded. But I can now only apply the float-left to images in arbitrary articles using the if statement!. Thank you so much!