pablomartinezalvarez / glayu

A static site generator for mid-sized sites.
MIT License
79 stars 4 forks source link

Unpublish a Post #6

Open pmartinezalvarez opened 7 years ago

pmartinezalvarez commented 7 years ago

Add a new unpublish command:

$ glayu unpublish <filename>

Unpublish a post. Will move the markdown file to the work directory and remove it from the source folder. The html file in the public directory will be preserved.

Argument Description
<file> full or partial path to the published markdown file

Ex:

glayu unpublish _posts/software/static-sites/2017/07/11/my-first-glayu-article.md

Or

glayu unpublish {site_dir}/work/_posts/software/static-sites/2017/07/11/my-first-glayu-article.md