logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

blaze-add - adds a blog post or a page to the BlazeBlogger repository

Bugs

       To  report  a  bug  or  to  send  a  patch,  please,  add  a  new   issue   to   the   bug   tracker   at
       <http://code.google.com/p/blazeblogger/issues/>,     or     visit     the     discussion     group     at
       <http://groups.google.com/group/blazeblogger/>.

Description

blaze-add adds a blog post or a page to the BlazeBlogger repository. If a file is supplied, it adds the
       content of that file, otherwise an external text editor is opened for you. Note that there are several
       special forms and placeholders that can be used in the text, and that will be replaced with a proper data
       when the blog is generated.

   SpecialForms<!--break-->
           A mark to delimit a blog post synopsis.

   Placeholders%root%
           A relative path to the root directory of the blog.

       %home%
           A relative path to the index page of the blog.

       %page[id]%
           A relative path to a page with the supplied id.

       %post[id]%
           A relative path to a blog post with the supplied id.

       %tag[name]%
           A relative path to a tag with the supplied name.

Environment

EDITOR
           Unless  the core.editor option is set, BlazeBlogger tries to use system-wide settings to decide which
           editor to use.

Example Usage

       Write a new blog post in an external text editor:

         ~]$ blaze-add

       Add a new blog post from a file:

         ~]$ blaze-add new_packages.txt
         Successfully added the post with ID 10.

       Write a new page in an external text editor:

         ~]$ blaze-add -p

       Write a new page in nano:

         ~]$ blaze-add -p -E nano

Name

       blaze-add - adds a blog post or a page to the BlazeBlogger repository

Options

-bdirectory, --blogdirdirectory
           Allows  you to specify a directory in which the BlazeBlogger repository is placed. The default option
           is a current working directory.

       -Eeditor, --editoreditor
           Allows you to specify an external text editor. When supplied,  this  option  overrides  the  relevant
           configuration option.

       -ttitle, --titletitle
           Allows you to specify the title of a blog post or page.

       -aauthor, --authorauthor
           Allows you to specify the author of a blog post or page.

       -ddate, --datedate
           Allows you to specify the date of publishing of a blog post or page.

       -kkeywords, --keywordskeywords
           Allows you to specify a comma-separated list of keywords attached to a blog post or page.

       -Ttags, --tagstags
           Allows you to supply a comma-separated list of tags attached to a blog post.

       -uurl, --urlurl
           Allows  you  to  specify  the  url  of  a blog post or page. Allowed characters are letters, numbers,
           hyphens, and underscores.

       -p, --page, --pages
           Tells blaze-add to add a page or pages.

       -P, --post, --posts
           Tells blaze-add to add a blog post or blog posts. This is the default option.

       -C, --no-processor
           Disables processing a blog post or page with  an  external  application.  For  example,  if  you  use
           Markdown to convert the lightweight markup language to the valid HTML output, this will enable you to
           write this particular post in plain HTML directly.

       -q, --quiet
           Disables displaying of unnecessary messages.

       -V, --verbose
           Enables displaying of all messages. This is the default option.

       -h, --help
           Displays usage information and exits.

       -v, --version
           Displays version information and exits.

See Also

blaze-init(1), blaze-config(1), blaze-edit(1), blaze-remove(1), blaze-make(1)

Synopsis

blaze-add [-pqCPV] [-bdirectory] [-Eeditor] [-aauthor] [-ddate] [-ttitle] [-kkeywords] [-Ttags]
       [-uurl] [file...]

       blaze-add-h|-v

See Also