Standardize footer and sidebar link format
closed
L
Liam
For the sidebar, I can do:
items: [
'pageid-1',
'pageid-2',
...
],
But for the footer (afaik) I have to do:
items: [
{
label: 'Page Title 1',
to: '/pageid-1',
},
{
label: 'Page Title 2',
to: '/pageid-2',
},
...
],
This is harder to maintain (and just annoying!). Maybe I'm missing something... would love that to be true
Joshua Chen
closed
You are welcome to use the longer
{type: 'doc', id: 'pageid-1'}
format for sidebar links. The strings are just a shorthand. Also, footer links are not related to any plugin, but a sidebar is using the data structure from the docs plugin, so you should expect them to differ.