That starts a local server, by default at port 4000 and enables the preview of the site pages.
Pages will be rendered dynamically instead of been generated on the public folder. This prevents conflicts in case you are working on a shared public directory.
http://localhost:4000/software/static-sites/2017/07/11/my-first-glayu-article.html and http://localhost:4000/_posts/software/static-sites/2017/07/11/my-first-glayu-article.html
Add a new
serve
command:[-p, --port]
That starts a local server, by default at port
4000
and enables the preview of the site pages.Pages will be rendered dynamically instead of been generated on the public folder. This prevents conflicts in case you are working on a shared public directory.
Accessing previews:
./source/_drafts/my-first-glayu-post.md
http://localhost:4000/_drafts/my-first-glayu-post.md
./source/_posts/software/static-sites/2017/07/11/my-first-glayu-article.md
http://localhost:4000/software/static-sites/2017/07/11/my-first-glayu-article.html
andhttp://localhost:4000/_posts/software/static-sites/2017/07/11/my-first-glayu-article.html
./source/my-first-glayu-page.md
http://localhost:4000/my-first-glayu-page.html