This is in an early stage: It has only been tested with a single demo site and misses some features.
A piece of glue code that runs Hugo for serving previews for CMS systems.
It uses a git client to get access to assets/layouts of the site and compiles pages based on content passed in via HTTP.
- Uses GitHub as a virtual filesystem to get layouts
- Renders pages on-demand, taking
path
anddata
viaPOST
- Supports partial re-renders (just like
hugo server
) - Supports extended mode
- Build & package a solid integration for NetlifyCMS
- Support custom source branches (only default right now)
- Provide tooling for easy usage (e.g.
npx hugo-preview-server setup:function ./functions
) - Run as a standalone http server process (for use in docker)
See LICENSE file