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

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

Closed
newt0 opened this issue May 6, 2020 · 2 comments

Comments

@newt0
Copy link

newt0 commented May 6, 2020

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
Copy link
Contributor

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
Copy link
Author

newt0 commented May 9, 2020

Sorry, I misspoke float-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!

@newt0 newt0 closed this as completed May 9, 2020
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

2 participants