-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: remove double negation #1778
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
base: master
Are you sure you want to change the base?
fix: remove double negation #1778
Conversation
Double negation was resulting in "if at least one of .imageHeight or .imageWidth is provided, then ...". Now it's "if both .imageWidth and .imageHeight are provided, then ..."
|
what? |
I do not think that the piece of code If I include the following conditions, it was resulting in
At least it is what I'm understanding, I'm new at this Hugo templating... If I'm right, I'm proposing to simplify the first condition, into if both imageHeight and imageWidth are provided, then |
Give it a try, set height and see the results and set width and see the results. We are letting user set one of them and not necessarily both should be set. |
I understand that. But the usage of I'll try changing only one, I did not need it in my site. Maybe this ticket is a non-issue, because of the formatting after that |
I tested on my site without the modification. Hugo throws an error when
No issue with my change. I created the issue #1780 |
What does this PR change? What problem does it solve?
Double negation in the index-profile partial was resulting in "if at least one of .imageHeight or .imageWidth is provided, then ...". Now it's "if both .imageWidth and .imageHeight are provided, then ...".
Was the change discussed in an issue or in the Discussions before?
Closes #1780
PR Checklist