@justibuild/plop-pack-justibuild-actions
v0.0.5
Published
## TODO:
Downloads
3
Readme
plop-pack-justibuild-actions
TODO:
[ ] - When creating a new page TYPE append to an internalLinks
array in /utils
, like:
export const internalLinks = [
{ type: "home" },
{ type: "faqs" },
{ type: "terms" },
{ type: "privacy" },
{ type: "cookie" },
];
This can then be used in an internalLinks
object:
fields: [
{
title: "Internal Link",
name: "link",
description: "Select an internal page to link to.",
type: "reference",
to: internalLinks,
validation: (Rule) => Rule.required(),
},
];
Then if there are multiple of the page type (blog posts or whatever) then they should all be captured.