2020-02-23 12:43:49 +00:00
|
|
|
|
# Ssb – simple static blogger
|
|
|
|
|
|
|
|
|
|
Ssb is a suckless static site generator and blogging anti-framework.
|
2020-02-25 23:29:46 +00:00
|
|
|
|
It is useful for creating very simplistic blogs based on Markdown writing.
|
|
|
|
|
If you're looking for a blogging tool that takes nearly no time to set up
|
|
|
|
|
and just want to start writing with Markdown, then ssb is a perfect script
|
|
|
|
|
for the task.
|
|
|
|
|
|
|
|
|
|
Ssb is heavily inspired and based on
|
|
|
|
|
[this](https://benedicthenshaw.com/static_site.html)
|
|
|
|
|
post.
|
2020-02-23 12:43:49 +00:00
|
|
|
|
|
|
|
|
|
## Generated site structure
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
+------------------------------+
|
|
|
|
|
| Header and navbar |
|
|
|
|
|
+------------------------------+
|
|
|
|
|
| |
|
|
|
|
|
| |
|
|
|
|
|
| Body written in Markdown |
|
|
|
|
|
| |
|
|
|
|
|
| |
|
|
|
|
|
+------------------------------+
|
|
|
|
|
| |
|
|
|
|
|
| List of posts |
|
|
|
|
|
| |
|
|
|
|
|
+------------------------------+
|
|
|
|
|
| Footer |
|
|
|
|
|
+------------------------------+
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Jump start
|
|
|
|
|
|
|
|
|
|
1. A POSIX compliant shell and your favourite markdown renderer (pandoc by
|
|
|
|
|
default) are required.
|
2020-02-25 23:29:46 +00:00
|
|
|
|
2. Download `ssb` and place it in your `PATH` or inside your blog directory.
|
2020-02-23 12:43:49 +00:00
|
|
|
|
3. Run `ssb -g` to generate html and css templates. Adjust the header and
|
|
|
|
|
the footer to your liking, you can customize the stylesheet, use a css theme,
|
2020-02-25 23:29:46 +00:00
|
|
|
|
or your favourite style for Markdown.
|
|
|
|
|
4. Write your `index.md` page and posts in `posts` directory.
|
2020-02-23 12:43:49 +00:00
|
|
|
|
5. Run `ssb index.md` to generate `html` files. Ssb will append header, list of
|
|
|
|
|
posts and footer to each file.
|
|
|
|
|
6. The timestamps near posts titles are generated from modification dates of
|
2020-02-25 23:29:46 +00:00
|
|
|
|
Markdown files.
|
|
|
|
|
If you wish to change them use the `touch` command.
|
2020-02-23 12:43:49 +00:00
|
|
|
|
7. Publish your blog.
|
|
|
|
|
|
|
|
|
|
## Features and non-features
|
|
|
|
|
|
2020-02-25 23:29:46 +00:00
|
|
|
|
* Ssb is a single POSIX compliant script that requires only a Markdown renderer
|
2020-02-23 12:43:49 +00:00
|
|
|
|
to create blogs.
|
2020-02-23 12:52:59 +00:00
|
|
|
|
* It is not a *real framework*, just a hackable script to automate blogging
|
2020-02-23 12:43:49 +00:00
|
|
|
|
and save your time.
|
|
|
|
|
* No tags, no artifacts, no javascript, no learning, no lengthy setup.
|
|
|
|
|
* If you want a simple and effortless blogging engine ssb is perfect for you,
|
2020-02-25 23:29:46 +00:00
|
|
|
|
whether you want something with more features you can hack it, or use
|
|
|
|
|
frameworks like Jekyll or Hugo.
|
2020-02-25 23:33:54 +00:00
|
|
|
|
|
2020-02-23 12:43:49 +00:00
|
|
|
|
## Help
|
2020-02-25 23:33:54 +00:00
|
|
|
|
|
2020-02-23 12:43:49 +00:00
|
|
|
|
```
|
|
|
|
|
./ssb -h
|
|
|
|
|
Usage: ./ssb [-d|-g|-h|-r] [-e HEADER_PATH] [-f FOOTER_PATH] [-m MD_RENDERER]
|
|
|
|
|
[-o OUTPUT_DIR] [-p POSTS_DIR]
|
|
|
|
|
```
|
2020-02-25 23:33:54 +00:00
|
|
|
|
|
|
|
|
|
Stylesheets for theming can be found
|
|
|
|
|
[here](https://github.com/maciejzj/ssb-themes).
|