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.
|
1 year ago | |
---|---|---|
bin | 1 year ago | |
lib | 1 year ago | |
public/css | 1 year ago | |
.gitignore | 1 year ago | |
.ruby-version | 1 year ago | |
Gemfile | 1 year ago | |
Gemfile.lock | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
config.yaml.sample | 1 year ago | |
systemd-clear-blog.service | 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