Skip to content

Commit b6f42bf

Browse files
committed
Docs: Correct icon partial example
1 parent d77e06b commit b6f42bf

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/docs/agnostic-theme-interfaces-proposal.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ params:
1515
items: <Product[]>
1616
# Product Group Label
1717
- title: <string>
18-
# The common top-level path for all documents within a domain; i.e. 'nginx' for NGINX+
19-
pathPrefix: <string>
20-
# Whether this link is external to the site
21-
extUrl: <bool>
18+
# The common top-level path for all internal documents within a domain; i.e. 'nginx' for NGINX+.
19+
# Supply if the link is external to the site.
20+
url: <string | undefined>
2221
header:
2322
# Header Nav items
2423
navItems: <NavItem[]>
@@ -136,7 +135,14 @@ would require we rewrite all our current CSS variable calls
136135
| `_iconDirect` | `string \| undefined` | A direct path for the icon resource to render. If supplied, `set` and `icon` params are ignored in handling. |
137136

138137
```go-template
139-
{{ partial "icon.html" set="lucide" size="md" icon="test-icon-id" _iconDirect="" . }}
138+
{{ $iconPartialParams = (dict
139+
"size" "md"
140+
"set" "lucide"
141+
"icon" "lock-open"
142+
"_iconDirect" ""
143+
)}}
144+
145+
{{ partial "icon.html" $iconPartialParams }}
140146
```
141147

142148
## Additional Notes

0 commit comments

Comments
 (0)