bashblog/README.md

50 lines
1.7 KiB
Markdown
Raw Normal View History

2013-02-21 14:53:50 +00:00
bashblog
========
2013-02-21 15:00:05 +00:00
A Bash script that handles blog posting
2013-02-21 15:20:17 +00:00
You can read [the initial blog post](http://mmb.pcb.ub.es/~carlesfe/blog/creating-a-simple-blog-system-with-a-500-line-bash-script.html) for more information and as a demo, as my site has been 100% generated using bashblog.
2013-02-21 15:00:05 +00:00
2013-02-21 15:01:54 +00:00
Usage
-----
Download bb.sh into a public folder of yours and run it:
2013-02-21 15:04:03 +00:00
2013-02-21 15:03:40 +00:00
./bb.sh
2013-02-21 15:01:54 +00:00
2013-02-21 15:10:02 +00:00
This will show the available commands
2013-02-21 15:01:54 +00:00
2013-02-21 15:10:02 +00:00
To create your first post, 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!
Features
--------
2013-02-21 15:00:05 +00:00
- Simple creation and edition of the posts with your favorite text editor
2013-02-21 15:10:02 +00:00
- Post preview
- Save posts as drafts and resume later
2013-02-21 15:00:05 +00:00
- Transformation of every post to its own html page, using the title as the URL
- Generation of an index.html file with the latest 10 posts
- Generation of an RSS file! Blog's magic is the RSS file, isn't it...?
- Generation of a page with all posts, to solve the index.html pagination problem
- Rebuilding the index files without the need to create a new entry
- Google Analytics support
- Feedburner support
- Auto-generated CSS support
- Headers, footers, and in general everything that a well-structured html file has
- xhtml validation, CSS validation, RSS validation by the w3c
2013-02-21 15:10:25 +00:00
- Backup of the site every time you post
2013-02-21 15:00:05 +00:00
- Everything contained in a single 700-line bash script!
- A simple but nice and readable design, with nothing but the blog posts
2013-02-21 15:10:02 +00:00
Non features (not planned)
--------------------------
- Comments. Would need a CAPTCHA or another antispam mechanism. Comments are handled through twitter, with a Twitter button
2013-02-21 15:00:05 +00:00
Read the CHANGELOG section of the script header for more updates