Skip to content

sirber/tiny-cms

Repository files navigation

Tiny CMS

Tiny Content Management System. It's almost a static web site! There is no database. Navigation is generated on available content.

Content

Content is in Twig format, using Bootstrap 5. It is located in the data/user_content/views folder. The file index.twig will be the default page, and will not be shown in nav. Other files will be shown in the nav. You can create folders to create sub menus. To use a space in a name, you can use an underscore (_).

Exemple:

  • index.twig
  • about_me.twig
  • test/hello.twig

Static files

It is possible to host and refer to static files. They are located in data/user_content/static. The url is /static/. Those file are served directly by the HTTP server.

Development

  1. Install docker
  2. Build the docker image and start it
make build
make up
  1. Visit: http://localhost

Production

Production image will cache templates for increased performance.

  1. Build the production image.
  2. Add your content:
    • Mount your content folder to data/user_content/.
    • Extend the base image with your content.
  3. Start the thing!