A simple blog generator from the bash.
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.
Malte Kiefer 957ae02c4f update readme 2 weeks ago
.github added funding 9 months ago
posts release new version 0.0.6 2 weeks ago
.gitignore release new version 0.0.6 2 weeks ago
CHANGELOG.md update readme 2 weeks ago
LICENSE Initial commit 9 months ago
README.md update readme 2 weeks ago
VERSION update readme 2 weeks ago
bashlyblog.sh update readme 2 weeks ago
config.example update readme 2 weeks ago
template.html update readme 2 weeks ago

README.md

BashlyBlog

license made for bash

BashlyBlog is a simple and small bash script for creating a blog. It reads all the Markdown files from a folder and creates a blog.

Dependencies

To use the script, please install the following dependencies

markdown curl sed

Debian

apt install markdown curl sed

macOS

brew install markdown curl

Install

To install the script simply clone this repo

git clone https://codeberg.org/maltekiefer/BashlyBlog

Make the script executable

chmod +x bashlyblog.sh

Configuration

To configure the blog, just rename the file

config.example

to

config

Then adjust the corresponding parameters in the config file.

For each update, the config.example is recreated. Here you can find the corresponding changes to the configuration parameters or new configuration parameters.

Create Post

Create posts in the folder posts. Important when creating posts is the filename. The first 12 characters must include the date and time (4 chars!) of creation to be displayed correctly in the blog:

201907311511-First-Post.md

Furthermore, the file must be structured as follows

First line is the title

In the third line the content will be started.

Publish the Blog

To publish the blog, simply copy the following files to the server

- index.html
- feed.rss