Lofi

A tiny CMS that uses txti.es as a backend content store.

Options Reference

Here's a complete listing of all the options:

{
    "title": "My Lofi Site", // Optional
    "header": "lofi-example-header", // Optional
    "footer": "lofi-example-footer", // Optional
    "menu": "horizontal", // Optional, "horizontal" or false
    "css": "", // Optional, path to CSS file, or false for no styling. Defaults to Water.css
    "custom-css": "", // Optional, path to CSS file, loaded in addition to "css"
    "script": "", // Optional, path to JS file, will be appended to <body> in a <script> tag
    "pages": [ // at least on page required
        {
            "title": "Home", // Optional, defaults to the pathname, capitalized
            "path": "/", // Required
            "txti": "lofi-example-home" // Required
        }
    ]
}

title

Optional. The title of the site, displayed in the <title> tag. Appends the title of current page, if available.

header

Optional. The txti slug of the txti to be displayed at the top of every page.

footer

Optional. The txti slug of the txti to be displayed at the bottom of every page.

menu

By default, Lofi creates a list of links to all your pages and displays them in the header of every page. Set to "horizontal" to display the menu horizontally. Set to false to hide the menu.

css

Optional. By default, Lofi pulls in the latest version of Water.css. You can set css to any other file path or URL to replace the default stylesheet. You can omit the default stylesheet by setting css to false. Recommendation: a number of simple CSS stylesheets are available at CSS Bed.

custom-css

Optional. Set to any file path or URL to load in styles additional to the one provided by css. This is useful if you want to add some extra rules to the default stylesheet (or an whatever stylesheet was provided in css.

script

Optional. Set to any file path or URL to load a JS file on every page of your site. The specified file will be appended to the <body> in a <script> tag`.

pages

Required. Set to an array of page objects. At least one page object is required. Page objects consist of: