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
8 months ago
bin init add basic listing and showing posts 8 months ago
lib posts: add --no-color to help scripting 8 months ago
public/css layout: add a basic layout and config 8 months ago
.gitignore layout: add a basic layout and config 8 months ago
.ruby-version deps: fix sinatra dependencies 8 months ago
Gemfile deps: fix sinatra dependencies 8 months ago
Gemfile.lock deps: fix sinatra dependencies 8 months ago
LICENSE Initial commit 9 months ago
README.md layout: add a basic layout and config 8 months ago
config.yaml.sample layout: add a basic layout and config 8 months ago
systemd-clear-blog.service adm: add a systemd service sample 8 months 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