We are working very hard to bring you the best documentation possible.

HTML DOCUMENTS

Pages

Required: Yes
Front Matter: Never
Type: .html
Project Location: src/pages

Every HTML document that fusion.ssg generates requires a template and every template associates with a page using the front matter "page" property. Pages provide HTML documents with their own content (if they have content) as well as their overall structure. Pages associated with templates with content will have their template tokens replaced by the template's content.

A page can have only one template token and it should be placed anywhere within the page that makes sense for the HTML document. Pages without template tokens are also valid, they provide their own content, and are convenient for one-off pages. Their associated template's content, if any, is ignored.

A page with a template token.


<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>{title}</title>
    </head>
    <body>
        <main class="container">
            {{template}}
        </main>
    </body>
</html>