diff --git a/public/admin/config.js b/public/admin/config.js new file mode 100644 index 0000000..afd8a03 --- /dev/null +++ b/public/admin/config.js @@ -0,0 +1,8 @@ +import { PeoplePreview } from "./previews/PeoplePreview.js" +import { NewsPreview } from "./previews/NewsPreview.js" + +window.CMS.init() +window.CMS.registerPreviewStyle("../src/styles/global.css") + +window.CMS.registerPreviewTemplate("people", PeoplePreview) +window.CMS.registerPreviewTemplate("news", NewsPreview) diff --git a/public/admin/index.html b/public/admin/index.html index 3fce062..e5267ed 100644 --- a/public/admin/index.html +++ b/public/admin/index.html @@ -4,21 +4,13 @@ + + Content Manager - + \ No newline at end of file