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.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Arthur POULET 446bcd9d8a
adm: add a systemd service sample
1 year ago
bin init add basic listing and showing posts 1 year ago
lib posts: add --no-color to help scripting 1 year ago
public/css layout: add a basic layout and config 1 year ago
.gitignore layout: add a basic layout and config 1 year ago
.ruby-version deps: fix sinatra dependencies 1 year ago
Gemfile deps: fix sinatra dependencies 1 year ago
Gemfile.lock deps: fix sinatra dependencies 1 year ago
LICENSE Initial commit 1 year ago
README.md layout: add a basic layout and config 1 year ago
config.yaml.sample layout: add a basic layout and config 1 year ago
systemd-clear-blog.service adm: add a systemd service sample 1 year ago

README.md

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