Reboot CMS auf Borstensohn
Versuch einer Anleitung zum »Reboot CMS«
Die Anleitung muss ich noch schreiben. Hier ist erst mal Text aus der Original-Dokumentation von Stefan Haack.
A flat file, Markdown CMS in PHP, inspired by Pico, Redaxo and Craft CMS.
Reboot CMS is a minimal CMS without a database, but with the support of blocks 🚀. Why another CMS?
I developed Reboot CMS because I couldn't find a CMS that works with flat markdown files but allows easy use of blocks.
Reboot CMS is very small and the pages are delivered extremely fast. My website shaack.com, built with Reboot CMS, has a PageSpeed Insights performance score of 100. Websites using Reboot CMS
The Reboot CMS demo page
shaack.com
wukies.de
chesscoin032.com
Install
Download the Reboot CMS repository and install it in your web root.
This should work out of the box.
Then (important), set the Admin password in /local/.htpasswd Documentation Page
Folder: /site/pages
A Page can be a flat Markdown file, can contain Blocks or also can be a PHP file.
Pages are auto-routed on web-requests:
index.md or index.php will be shown on requesting /
NAME.md or NAME.php will be shown on requesting /NAME
FOLDER/index.md (or .php) will be shown on requesting /FOLDER
FOLDER/NAME.md (or .php) will be shown on requesting /FOLDER/NAME
Example for a Markdown Page with Blocks:
title: Reboot CMS description: Reboot CMS is a flat file CMS, with the support of blocks. author: Stefan Haack (shaack.com)
Reboot CMS
The text-image block
The gray block above was a hero block. This one is a text-image block, it contains two parts. Parts are separated by
---.
Configure blocks in the block comment
The text-image block can also display the image to the left.
the
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est.
three-colums
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
block
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
This Page contains 3 Block types, "hero", "text-image" and "three-columns". It will render to this:
A rendered page
Blocks can be configured in the block comment. With this configuration, the text-image block allows to display the image to the left side in desktop view.
Markdown files without blocks will render to a flat Markdown page like in every other flat file CMS.
You can define metadata for the page on top of the file in YAML Front Matter syntax. Block
Folder: /site/blocks
A Block describes how a block is rendered. Blocks are written in PHP.
The code for the "text-image" Block which was used in the page above, looks like this:
<?php // read the configuration $imagePosition = @$block->getConfig()["image-position"]; ?>
in part 1 for the display-4"
in part 1"