Skip to content

Commit 527d825

Browse files
markdumayclaude
andcommitted
chore: add shared argument definitions for menu and modal features
Adds new shared argument definitions to support menu and modal functionality across components. Updates the plain argument description to clarify its broader usage beyond images. Additions: - menu: Site menu name parameter (default: main) - menu-entry: Menu item entry object for navigation - menu-parent: Parent menu item reference for hierarchical menus - menu-style: Menu layout style selector (grid/masonry) - modal: Modal control target for toggling modals Updates: - plain: Expanded description to cover navbar items ignoring children - Minor whitespace cleanup for consistency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 099d69a commit 527d825

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

data/structures/_arguments.yml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,31 @@ arguments:
792792
type: string
793793
optional: true
794794
comment: ID of the asset to be embedded.
795+
menu:
796+
type: string
797+
optional: true
798+
default: main
799+
comment: Name of the site menu.
800+
menu-entry:
801+
type:
802+
- '*navigation.MenuEntry'
803+
- 'map[string]interface {}'
804+
comment: Current menu item.
805+
menu-parent:
806+
type:
807+
- '*navigation.MenuEntry'
808+
- 'map[string]interface {}'
809+
optional: true
810+
comment: Parent of the current menu item.
811+
menu-style:
812+
type: select
813+
optional: true
814+
default: masonry
815+
comment: Style of the menu layout.
816+
options:
817+
values:
818+
- grid
819+
- masonry
795820
min:
796821
type: int
797822
optional: true
@@ -812,6 +837,11 @@ arguments:
812837
optional: false
813838
comment: Message to display.
814839
group: partial
840+
modal:
841+
type: string
842+
optional: true
843+
comment: >-
844+
If set, toggles a modal control for the provided target.
815845
mode:
816846
type: bool
817847
default: false
@@ -999,8 +1029,9 @@ arguments:
9991029
default: false
10001030
optional: true
10011031
comment:
1002-
Flag to indicate if the image should render a plain image instead of an
1003-
image set. When set, no transformations are applied to the image.
1032+
Flag to indicate if the current element should be rendered as plain. For
1033+
image, this implies no transformations are applied. For navbar items,
1034+
this ignores any children.
10041035
popup:
10051036
type: string
10061037
optional: true
@@ -1189,7 +1220,7 @@ arguments:
11891220
optional: true
11901221
default: true
11911222
comment: Indicates if the preview should be output in the HTML.
1192-
size:
1223+
size:
11931224
type: int
11941225
optional: true
11951226
config: style.title.size

0 commit comments

Comments
 (0)