Skip to content
Opinionated elixir static site generator for single-file HTML posts
Elixir
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.formatter.exs
.gitignore
.tool-versions
LICENSE
README.md
mix.exs
mix.lock
zamrazac_vscode.code-workspace

README.md

zamrazac

Opinionated elixir state site generator for single-file HTML posts

Usage

Clone this using git.

I mostly reccommend you talking to it via shell scripts like:

#! /bin/bash

# Script to create a post given a string title.

set -eou pipefail

BLOG_AUTHOR="Your Name"
BLOG_DIRECTORY="$HOME/.blog"
BLOG_BUILD_PATH="$HOME/.blog_output"
ZAMRAZAC_PATH="$HOME/projects/zamrazac" # or wherever you cloned it to

mkdir -p "$BLOG_DIRECTORY"
mkdir -p "$BLOG_BUILD_PATH"

pushd () {
    command pushd "$@" > /dev/null
}

popd () {
    command popd "" > /dev/null
}

pushd "$ZAMRAZAC_PATH"
BLOG_DIRECTORY="$BLOG_DIRECTORY" BLOG_AUTHOR="$BLOG_AUTHOR" mix zamrazac.create "$1"
popd
#! /bin/bash

# Script to run the blog creation pipeline.

set -eou pipefail

BLOG_TITLE="Swizzled Bits"
BLOG_DIRECTORY="$HOME/.blog"
BLOG_BUILD_PATH="$HOME/.blog_output"
BLOG_URL="https://www.myblog.com"
BLOG_DESCRIPTION="Description of your blog."
BLOG_POSTS_ROOT="https://www.myblog.com/posts/"
ZAMRAZAC_PATH="$HOME/projects/zamrazac" # or wherever you cloned it to

mkdir -p "$BLOG_DIRECTORY"
mkdir -p "$BLOG_BUILD_PATH"

pushd () {
    command pushd "$@" > /dev/null
}

popd () {
    command popd "" > /dev/null
}

pushd "$ZAMRAZAC_PATH"
BLOG_URL="$BLOG_URL" BLOG_DESCRIPTION="$BLOG_DESCRIPTION" BLOG_POSTS_ROOT="$BLOG_POSTS_ROOT" BLOG_TITLE="$BLOG_TITLE" BLOG_DIRECTORY="$BLOG_DIRECTORY" OUTPUT_DIRECTORY="$BLOG_BUILD_PATH" mix zamrazac.generate
popd
You can’t perform that action at this time.