blogit
blogit OPTIONS COMMONMARK_FILE
blogit provides a means of currating front matter in a CommonMark or Markdown document. When you’re ready to publish (when the front matter validates) it’ll copy the document into a blog directory structure.
You can provides a defaults for front matter for blogit by providing a YAML file with the name of “blogit.yaml”. It will be the default values for front matter fields.
Options come as the last parameter(s) on the command line.
blogit will look for a “blogit.yaml” file in the current directory of where blogit is being executed. The file’s YAML provides minimum front matter default values. To apply the defaults from blogit.yaml you use the apply action.
Here’s an example of creating a blog from scratch while levaraging BlogIt
# Pick an editor, example nano in the case
export EDITOR=nano
mkdir -p $HOME/Site/website/blog
cd $HOME/Site/website
# Create your first post
nano $HOME/Documents/FirstPost.md
# Create/curate the Front Matter for your first blog post
BlogIt edit $HOME/Documents/FirstPost.md
# Check to make sure everything is ready to go
BlogIt check $HOME/Documents/FirstPost.md
# Publishing into your blog's directory tree
BlogIt publish $HOME/Document/FirstPost.md
# See the blog post ready in your blog directory
tree blog
You are ready to run additional processing like FlatLake to render your blog’s JSON API, Pandoc to render HTML and PageFind to complete your website.
Here is an example of using the “apply” action front matter values.
blogit --apply=defaults.yaml FirstPost.md