Closed sc0ttj closed 5 years ago
new post
should ask to publish each time it's run:do commit message "added new post ($post_slug) and re-built site indexes."
rebuild
should ask to publish each time is it run.If -all
not given, do commit message "re-built site indexes"
If -all
was given, do commit message "re-built all pages"
If -ALL
was given, do commit message "re-built all pages from mdsh sources"
publish
should not publish any pages which are commented out in posts.csv
.
In fact, it should 'unpublish' them - they should not be included categories & tags lists (etc) during rebuilds, and should not appear online.
Reason:
Any posts commented out in posts.csv
should be considered "drafts" - not ready to be published, and not to be deleted.
Any posts removed from posts.csv
should have their (html, css, etc) files deleted.
Create a
publish
script that does something like:Create an
unpublish
script that will:posts.csv
rebuild
to re-build all index pagesrun the
publish
scriptNOTE: requires fixes in various places, so that commented lines are ignored when parsing
posts.csv