A simple blog software with calendar and FAQ publishing. Only 1 role "blogger" with password (can only be created by another blogger). Posts can have a date OR a title.
Go to file
2022-02-20 12:39:01 +01:00
bin init add basic listing and showing posts 2022-02-14 23:25:49 +01:00
lib posts: add --no-color to help scripting 2022-02-19 12:03:25 +01:00
public/css layout: add a basic layout and config 2022-02-19 10:25:51 +01:00
.gitignore layout: add a basic layout and config 2022-02-19 10:25:51 +01:00
.ruby-version deps: fix sinatra dependencies 2022-02-19 11:47:38 +01:00
config.yaml.sample layout: add a basic layout and config 2022-02-19 10:25:51 +01:00
Gemfile deps: fix sinatra dependencies 2022-02-19 11:47:38 +01:00
Gemfile.lock deps: fix sinatra dependencies 2022-02-19 11:47:38 +01:00
LICENSE Initial commit 2022-01-17 14:25:47 +01:00
README.md layout: add a basic layout and config 2022-02-19 10:25:51 +01:00
systemd-clear-blog.service adm: add a systemd service sample 2022-02-20 12:39:01 +01:00

ClearBlog

A simple blog software with calendar and FAQ publishing. Only 1 role "blogger" with password (can only be created by another blogger). Posts can have a date OR a title.

Install

bundle install
cp config.yaml.sample config.yaml
edit config.yaml

Run

bin/blog

Commands

Create a new post for a given date or topic

bin/post --today --file input.txt # you can read a file. today avoid writting the date manualy
bin/post --today --stdin < input  # you can read stdin
bin/post --today < input          # --stdin is optional, you can not specify it
bin/post --date "2022-02-02" --stdin < input # specify a date OR a topic, not both
bin/post --title --stdin < input             # you can specify the topic instead

tip: use rlwrap if you want to use the stdin version