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

Support typed bool, int and float in shortcode params #6376

Merged
merged 1 commit into from
Sep 29, 2019

Conversation

bep
Copy link
Member

@bep bep commented Sep 29, 2019

This means that you now can do:

{{< vidur 9KvBeKu false true 32 3.14 >}}

And the boolean and numeric values will be converted to bool, int and float64.

If you want these to be strings, they must be quoted:

{{< vidur 9KvBeKu "false" "true" "32" "3.14" >}}

Fixes #6371

@bep bep force-pushed the shortcode-bool2 branch 3 times, most recently from 3ec5904 to 67cf919 Compare September 29, 2019 16:31
This means that you now can do:

    {{< vidur 9KvBeKu false true 32 3.14 >}}

And the boolean and numeric values will be converted to `bool`, `int` and `float64`.

If you want these to be  strings, they must be quoted:

    {{< vidur 9KvBeKu "false" "true" "32" "3.14" >}}

Fixes gohugoio#6371
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support bool type params in shortcode
1 participant