htoml


Clone it!


                           𝙝𝙩𝙤𝙢𝙡

HTML page templates described with a toml config

HTOML file example (contents of a .toml)

# Title of the HTML page
title = "Homepage"

# Path to html output
output = "publish/index.html"

# Different sections for the HTML document
[sections]

# Navigation section [Optional]
[sections.navbar]
# Variant to use
variant = "basic"
# Links for the navigation
links = [{url= "/", text= "Home"}, {url= "/about", text= "About"}, {url= "/contact", text= "Contact Us"}]

# Hero section [Optional]
[sections.hero]
# Variant to use
variant = "basic"
heading = "Awesome Hero"
sub_heading = "This is a cool sub heading"

Usage

To generate .html files from .toml files run the following command:

# This an example, use your own .toml files
$ htoml index.toml about.toml contact.toml

Credits