htoml

HTML page templates described with a toml config
git clone https://gitlab.com/kwatafana/htoml.git
Log | Files | Refs | README

HTOML_example.toml (719B)


      1 # An example of a HTOML description
      2 
      3 # Title of the HTML page
      4 title = "Homepage"
      5 
      6 # Path to html output
      7 output = "publish/index.html"
      8 
      9 # Primary color (CSS colors)
     10 primary_color = "teal"
     11 
     12 # Secondary color (CSS colors)
     13 secondary_color = "white"
     14 
     15 # Tertiary color (CSS colors)
     16 tertiary_color = "cyan"
     17 
     18 # Different sections for the HTML document
     19 [sections]
     20 
     21 # Navigation section [Optional]
     22 [sections.navbar]
     23 # Variant to use
     24 variant = "basic"
     25 # Links for the navigation
     26 links = [{url= "/", text= "Home"}, {url= "/about", text= "About"}, {url= "/contact", text= "Contact Us"}]
     27 
     28 # Hero section [Optional]
     29 [sections.hero]
     30 # Variant to use
     31 variant = "basic"
     32 heading = "Awesome Hero"
     33 sub_heading = "This is a cool sub heading"