![]() |
12 jaren geleden | |
---|---|---|
README.md | 12 jaren geleden | |
bb.sh | 12 jaren geleden |
A Bash script that handles blog posting.
Some would say it's a CMS, but I don't like that word. It's just a script that lets you write a blog post with your favorite editor, puts all the posts together into an index, and creates an RSS file and a list of posts.
I created it because I wanted a very, very simple way to post entries to a blog by using a public folder on my server, without any special requirements and dependencies.
You can read the initial blog post for more information and as a demo, as my site has been 100% generated using bashblog.
You only need SSH access to a server which allows its users to run shell scripts.
Copy bb.sh into a public folder of yours and run it:
./bb.sh
This will show the available commands. If the file is not executable, you can either chmod +x bb.sh
or run it with bash bb.sh
Before creating a blog post, edit bb.sh
and modify the variables in the global_variables()
function or create a .config
file with your configutation values
To create your first post, make sure $EDITOR
is set, and then just do:
./bb.sh post
When you're done, access the public URL for that folder and you should see the index file and a new page for that post!
Read the CHANGELOG section of the script header for more updates
This software is still maintained, however, it can be considered finished. It has been used by many people and no bugs have been found.
In the issues tab you can find some improvements; the main one is the addition of Markdown support for posts. This requires a Markdown parser, which would add more dependencies and/or increase the code length.
If you happen to find a concise, elegant Markdown to HTML parser which runs in Bash and is portable, please comment on issue #14