-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Make ge, le etc. work with the Hugo Version number #4443
Comments
The problem with any new functionality in this department is that you will have to wait until it's available. |
Not sure to follow. |
My proposed fix is that you should be able do do: if ge .Hugo.Version "0.35" But that will not work in Hugo 0.17 (default on Netlify). |
Yes of course, at least we'll have it post .37 or whenever you'll find time for this. I don't think there is a better way to approach the issue though :/ |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
These days, we rely a lot on Netlify, Forestry which may or may not impose their own version of Hugo.
Plus not every Theme user may be using the last version of Hugo. Even though Themes must indicate a minversion, it would be interesting to be able to add new features like Page Bundle management, while still catering for users using older version of Hugo.
While it is hard to test if a feature is available for a current version, we need to test which version the project is using before calling
.Resources
or other.The
.Hugo.Version
variable being a semver string it is not currently testable with common template func likege
orle
The text was updated successfully, but these errors were encountered: