BashBlog

BashBlog . Static blog generator. It is difficult to define which is the best or most productive. Each user has their preferences and they are generally summarized by Jekyll, Pelican, Middleman, Huango and some more among the most used.

In summary, it is a simple, fairly complete bash script that, in addition to what has been described above, any user with mere bash knowledge can further scale the script’s features (bb.sh).

 

Summary

[ hide ]

  • 1 Features
  • 2 Installation
  • 3 Set global options
  • 4 Sources

characteristics

  • Extremely easy editing. Choose your favorite text editor and start writing the post.
  • It does not require the installation of external libraries or dependencies. It’s just Bash.
  • It runs on GNU/ Linux , BSD and OS X .
  • All content is static, you only need access to a console and a public web folder to publish the posts.
  • Run a web server.
  • The ability to mount a remote public folder via ftpfs and run the script locally.
  • Allows draft editing (Draft).
  • It has a simple style sheet, which we can modify on our own.
  • Automatic backup of the site every time it is published (stored as .backup.tar.gz).
  • Automatic RSS generator.
  • Support of:
    • Tags (categories).
    • Comments through Disqus.
    • Twitter, Feedburner , Google Analytics .

 

Installation

Inside the bashblog folder is the script bb.sh, this should be copied to the folder that the blog will be placed in. It may be, when installing Apache2 in Debian GNU / Linux 8 it already assigns a specific folder by default in the location / var / www / html. As each user uses a specific configuration for his purpose, each one configures his server.

A good practice would be to edit the lines referring to the root of our site (DocumentRoot) in addition to the configuration directives of the root directory of the local Web <Directory / var / www />.

Installation

 

Hereafter each time you point to the address ( http: // localhost / blog ) or server address p. For example: http: //192.168.xx/blog , the static HTML content generated by bb.sh will be displayed, that is, your web page .

Note: If for some reason the script requires privileges it runs: chmod + x bb.sh

 

Set global options

The tool is fully configurable, and allows changes such as:

  • Blogtitle .
  • Description of the title or website.
  • Number of articles to be displayed on the main page.

Configuration of:

  • E-mail
  • Author
  • Twitter
  • Disqus
  • Header and footer.

These settings can be made in two ways:

  • Create a .config file and edit the necessary variables.
  • Directly edit the bb.sh file.

The first option must take into account the syntax variable_name = “value” —the equal sign (=) must not have spaces around it. In addition to taking into account that the settings in the .config file take precedence over the bb.sh file.

 

Leave a Comment