update_navigation
Update your Ghost blog's primary and secondary navigation menus by providing complete replacement lists of label-url pairs.
Instructions
Set the blog's navigation menus (primary header and secondary/footer).
Each menu is a list of {"label": ..., "url": ...} items. The whole menu
is REPLACED, not appended to, so send the complete set you want; pass only the
menu(s) you mean to change and the other is left untouched. URLs are usually
site-relative (/about/) or absolute. Extra keys on an item (such as the
external/kind hints from extract_brand) are ignored, so links read
from a site can be passed straight through.
Membership actions (login/sign-up/account) belong in the theme as Ghost Portal
buttons (data-portal), not here -- don't add them as menu links. Confirm
the menus with the user before calling this; it changes the live site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| primary | No | The primary (header) menu, or ``None`` to leave it unchanged. | |
| secondary | No | The secondary (footer) menu, or ``None`` to leave it unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||