WebFactory Default Index Page

Introduction

static-site-generator

WebFactory CMS 0.1 system is a super simple CMS system for static web pages.

Restricted access

By default the customization is behind a login.

Default login admin / webfactory is defined in settings.rb. Be sure to replace that with your own login before going to production.

To force logout go to.

/logout

Customization

Change this page by opening the following url

/edit/index

View pre-generated version of this page on following url

/index

Render new version of this page on following url

/render/index

Create a new page mypage by (1) opening the following url

/edit/mypage

And (2) include a template reference in the top of the new page.

But exclude any spaces within brackets. Spaces are added here just to avoid that the reference interpreted as a valid one.

{{ template:default }}

Reference other sections of a page (existing or non-existing) by inserting following markup within a page, but with spaces removed.

{{ section:route/section }}

Reference constant definitions (defined in config/constants.json) by inserting following markup within a page, but with spaces removed.

{{ const:name }}

Change template by changing header parameter "default" to your custom template file located in templates/.

{{ template:custom }}

Pages and sections

A page is a markup file (markdown or html) with a template configuration in the top of the page. Note no speces are allowed within brackets.

{{ template:default }}

A page may include all the contents it needs directly in the page, but may also reference other markup parts called, sections.

A page and a section look the same and are edited and created the same way. The only difference is that a page must include a template reference (in the top) to make it complete as a page. A section must not include a template reference because it is already part of a page. A page cannot have multiple document roots.

Example page

Below a pre-defined page has been created as an example.

Link: apage

Other admistrative

Show a list of all pages and sections by opening the following url

/all

Render all pages by opening the following url

/render/all