one-click-hugo-cms icon indicating copy to clipboard operation
one-click-hugo-cms copied to clipboard

Updating the build pipeline to include custom CMS templates for preview

Open maxcell opened this issue 2 years ago • 0 comments

Summary

Looks like when I upgraded all of our dependencies and fixed up some breaking changes in #674, I also broke the Preview Template feature. Fortunately this doesn't stop it from rendering properly once you've published your post in the editor, just need to find a way to bring the src/js/cms.js files into our site/static/admin/index.html.

Current Preview Current Output
CleanShot 2022-07-08 at 17 12 36 CleanShot 2022-07-08 at 17 29 42

Steps to Reproduce

To reproduce this you need to go into the NetlifyCMS (/admin) and see any page or post.

Expected Behavior

We should expect the current output as the current preview, with the same styling and everything we're using.

maxcell avatar Jul 08 '22 21:07 maxcell