-
-
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
Add "param" shortcode #4010
Comments
Should there be a site params alternative too? Maybe |
I assume you know that the above snippet will fall back to Site param if not found in Page. This is the common requirement. I don't want to add more until I see some neon ads on Time Square in New York saying "we want pparam in Hugo now!" It adds documentation work and those people who really need it can easily add it themselves. |
That said, this shortcode should probably have an optional second argument with a default value if not found. |
Yes, I read about there somewhere in the docs. But I got misled by the error message
That will be cool! |
This is an issue asking for a shortcode. This is not the implementation. I quickly wrote that error text and it could be cluearer, but the important info elements are the name of the param and the page path ... Then it should be easy to navigate. |
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. |
Looking something like this:
The text was updated successfully, but these errors were encountered: