Example Blog

BashWrite Quick Start

Written on

Tags: tutorial blog

About BashWrite

Pure Bash, single script blog generator


Quick Start

Install

  1. Download: bw.sh - Codeberg
  2. Make file executable: chmod +x ./bw.sh
  3. Edit and save script's user settings: nano ./bw.sh (Or use preferred text editor)
  4. View help/first steps (See: Write New Posts): ./bw.sh
  5. Generate blog: ./bw.sh b

Write New Posts

  1. Create a markdown file in ./write/: touch ./write/first-post.md
  2. Edit newly created markdown file: nano ./write/first-post.md (Or use preferred text editor)
  3. Start markdown file with frontmatter

---
title: My new post
description: Write description of this post.
date: 2025-02-05
lastmod: 2025-05-02
tags: tags seperated by whitespace
draft: false
pin: 1
banner: image.png
---
  1. Add post content in markdown syntax after frontmatter
  2. Save markdown file
  3. Update blog: ./bw.sh b

Remove posts

  1. Remove a markdown file in ./write/: rm -i ./write/first-post.md
  2. Update blog: ./bw.sh b

Commands

Directory Structure

Downloaded From Repository

Automatically Generated

Note: Do not edit the following files

User Created Folders

Note: Only edit files within these folders

Create folders: mkdir ./assets ./write