Skip to content

Individual

Declan Chidlow edited this page Jul 1, 2024 · 2 revisions

Config file

When using standard, each page needs its own directory with a TOML file. An example of a conf.toml for a page is the index page for the Adduce site

Generating HTML using the Adduce CLI

-c represents the config directory. -n represents the output file name. -o represents the output directory

adduce -c config/index -n index.html -o output

Multipage usage

Adduce is intended to be used in a BASH script. Here is an example of generating multiple pages.

#!/bin/bash
adduce -c config/index -n index.html -o output
adduce -c config/about -n about.html -o output
adduce -c config/contact -n contact.html -o output
adduce -c config/404 -n 404.html -o output
Clone this wiki locally