Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
test: unnest previews
Browse files Browse the repository at this point in the history
  • Loading branch information
hetd54 committed Aug 13, 2024
1 parent c9dba48 commit f695742
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions public/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
<!-- Include the script that builds the page and powers Static CMS -->
<script src="https://unpkg.com/@staticcms/app@^4.0.0/dist/static-cms-app.js"></script>
<script type="module">
// import { PeoplePreview } from "./previews/PeoplePreview.js"
// import { NewsPreview } from "./previews/NewsPreview.js"
import { PeoplePreview } from "./PeoplePreview.js"
import { NewsPreview } from "./NewsPreview.js"

window.CMS.init()
window.CMS.registerPreviewStyle("../src/styles/global.css")

// window.CMS.registerPreviewTemplate("people", PeoplePreview)
// window.CMS.registerPreviewTemplate("news", NewsPreview)
window.CMS.registerPreviewTemplate("people", PeoplePreview)
window.CMS.registerPreviewTemplate("news", NewsPreview)

</script>
</body>
Expand Down

0 comments on commit f695742

Please sign in to comment.