Skip to content

Commit

Permalink
Add quotes to example Hugo binding
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Apr 21, 2024
1 parent e8fcae1 commit 5dee388
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion guides/eleventy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ hero_text: "Hello World"
This component can make the connection between "text" and ".Params.hero_text",
and will work as expected in the visual editor.
-->
{{ partial "bookshop_bindings" `(dict text .Params.hero_text)` }}
{{ partial "bookshop_bindings" `(dict "text" .Params.hero_text)` }}
{{ partial "bookshop" (slice "hero" (dict "text" .Params.hero_text)) }}

{{ my_title := .Params.hero_text }}
Expand Down
2 changes: 1 addition & 1 deletion guides/hugo.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1876,7 +1876,7 @@ hero_text: "Hello World"
This component can make the connection between "text" and ".Params.hero_text",
and will work as expected in the visual editor.
-->
{{ partial "bookshop_bindings" `(dict text .Params.hero_text)` }}
{{ partial "bookshop_bindings" `(dict "text" .Params.hero_text)` }}
{{ partial "bookshop" (slice "hero" (dict "text" .Params.hero_text)) }}

{{ my_title := .Params.hero_text }}
Expand Down
2 changes: 1 addition & 1 deletion guides/jekyll.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ hero_text: "Hello World"
This component can make the connection between "text" and ".Params.hero_text",
and will work as expected in the visual editor.
-->
{{ partial "bookshop_bindings" `(dict text .Params.hero_text)` }}
{{ partial "bookshop_bindings" `(dict "text" .Params.hero_text)` }}
{{ partial "bookshop" (slice "hero" (dict "text" .Params.hero_text)) }}

{{ my_title := .Params.hero_text }}
Expand Down
2 changes: 1 addition & 1 deletion guides/sveltekit.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ hero_text: "Hello World"
This component can make the connection between "text" and ".Params.hero_text",
and will work as expected in the visual editor.
-->
{{ partial "bookshop_bindings" `(dict text .Params.hero_text)` }}
{{ partial "bookshop_bindings" `(dict "text" .Params.hero_text)` }}
{{ partial "bookshop" (slice "hero" (dict "text" .Params.hero_text)) }}

{{ my_title := .Params.hero_text }}
Expand Down

0 comments on commit 5dee388

Please sign in to comment.