2 releases
new 0.1.1 | Feb 13, 2025 |
---|---|
0.1.0 | Feb 12, 2025 |
#514 in Command line utilities
45 downloads per month
31KB
643 lines
Blog CLI
A CLI tool for managing blog posts
Features
- Creation of blog posts directories with basic files
- Adding/Removing/Listing tags from a post
- Adding/Removing/Listing keywords from a post
- Automatic fetch of header images from pexel using post's keywords
- Management of the header images for the post
- Building a post (producing basic html, incluedable in other static sites)
- Deploying of the post (push of a zip) to a remote location with authentication option
Usage
$ blog -h
A CLI blog post manager
Usage: blog <COMMAND>
Commands:
new Creates a new blog post with the given title
build Builds the blog post (fetches header images, generates index.html, etc.)
publish Publishes the blog post (Not implemented yet, missing remote handler)
tag Manages tags for a blog post
keyword Manages keywords for a blog post
header Manages header image for a blog post
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
Blog posts
Upon creation of a new blog post, a tree of directories and files is created. The structure is as follows:
<year>
└── <month>
└── <slugified-title>
├── content.md
├── metadata.toml
├── images/
metadata.toml contains the metadata of the post such as the publication and update dates, keywords and tags.
Dependencies
~12–24MB
~365K SLoC