@becklyn/contentful-adapter
Version:
[](https://github.com/Becklyn-Studios/contentful-adapter/actions/workflows/ci.yml)
36 lines (35 loc) • 972 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SeoConfig = exports.getPageConfig = void 0;
const ui_types_1 = require("@becklyn/ui-types");
const getPageConfig = (contentComponentKeys) => {
return {
key: "page",
data: {
title: ui_types_1.TYPE_STRING,
slug: ui_types_1.TYPE_STRING,
seo: {
multiple: false,
data: exports.SeoConfig,
},
content: {
multiple: false,
data: contentComponentKeys,
},
},
};
};
exports.getPageConfig = getPageConfig;
exports.SeoConfig = {
key: "seo",
data: {
title: ui_types_1.TYPE_STRING,
description: ui_types_1.TYPE_STRING,
keywords: {
data: ui_types_1.TYPE_STRING,
multiple: true,
},
no_index: ui_types_1.TYPE_BOOL,
no_follow: ui_types_1.TYPE_BOOL,
},
};