Categorygithub.com/holedaemon/static
repositorypackage
0.0.1
Repository: https://github.com/holedaemon/static.git
Documentation: pkg.go.dev

# README

static

A simple CLI tool used to quickly scaffold static sites.

Installation

[!WARNING] static has only been used and tested on Linux

With the Go toolchain:

$ go install github.com/holedaemon/static

Usage

Assuming static is in your $PATH, run it once to generate a static.json file, which looks like:

{
    "directory": ".",
    "title": "",
    "description": "",
    "author": "",
    "address": "",
    "use_sass": true,
    "use_dprint": true,
    "use_task": true
}

Edit to your liking and run static again to scaffold a project based on the given settings.

One can also configure static with environment variables by passing the -e flag. Loading variables from an adjacent file .env is also supported using the -f flag. Passing -f implicitly enables -e.

STATIC_DIRECTORY=.
STATIC_TITLE=
STATIC_DESCRIPTION=
STATIC_AUTHOR=
STATIC_ADDRESS=
STATIC_USE_SASS=true
STATIC_USE_DPRINT=true
STATIC_USE_TASK=true

Structure

Sites generated with static are tailored specifically to how I write them, which is with templated HTML and Sass.

example.com/
├── Caddyfile
├── dprint.json
├── .gitignore
├── include
│   ├── head.html
│   └── page.html
├── index.html
├── static
│   └── font
│       ├── ROBOTO_MONO.ttf
│       └── ROBOTO.ttf
├── style
│   ├── abstract
│   │   ├── _derived-variables.scss
│   │   ├── _functions.scss
│   │   ├── _initial-variables.scss
│   │   ├── _mixins.scss
│   │   └── _variables.scss
│   ├── base
│   │   ├── _base.scss
│   │   ├── _fonts.scss
│   │   └── _reset.scss
│   └── main.scss
└── Taskfile.yml

License

LICENSE