bowman

Page Templates

Page templates contain ejs calls to the main parts of your site (head, header, navigation, footer).

Define a custom template for your page by creating one and calling it:

    src/
        static/
            ejs/
                templates/
                    basic.ejs


index.ejs

    ---
    template: basic
    ---


Note: Pages will use default.ejs via /src/static/ejs/templates if none specified.

default.ejs

    <!DOCTYPE html>
    <html lang="en-US">
    <head>
        <%- include('../layouts/head') %>
    </head>

    <body>
        <%- include('../layouts/header') %>

        <%- body %>

        <%- include('../layouts/footer') %>

        <%- include('../layouts/foot') %>
    </body>
    </html>


Click here for information on creating layouts.