Development Trend: Static Pages
24 Nov 2017

Development Trend: Static Pages

24 Nov 2017

The majority of web developers, including me, have a well-known way of creating websites. Either it is a static website showing only a few information about something or a full custom site that needs to handle all kinds of user – interaction with the site itself.

#1 Static Website vs. CMS Website

For a static website we would use few lines of HTML code, give it a cool look with the help of CSS, maybe add some JavaScript functions to create a cooler behaviour and that’s it. On the other hand for dynamic websites with a custom CMS we are used to using all that, plus a database. A database is a keyword for this blog post. We are introducing STATIC SITE GENERATORS which do not use it!

Statemic Control Panel

Statemic Control Panel

#2 Static Websites beyond a one-pager?

People sometimes ask if static sites make sense for anything beyond a one-pager? The answer is of course it does.
The typical CMS driven website works by building each page on-demand, fetching content from a database and running it through a template engine. This means each page is assembled from templates and content on each request to the server. For most sites, this is completely unnecessary overhead and only adds complexity, performance problems and security issues. After all, by far the most websites only change when the content authors or their design team makes changes.

A Static Site Generator takes a different approach and generates all the pages of the website once when there are actually changes to the site. This means there are no moving parts on the deployed website. Caching gets much easier, performance goes up and static sites are far more secure.

#3 Static Site Generators

There are a lot of world known static site generators. I can mention a few on this occasion: Jeklly as the most famous, then there is Hugo, Hexo and many others.

HUGO

HUGO

Static Site Generator

Static Site Generator

We @impaddo started using Statamic as a flat file CMS and we are delighted with it. The best thing is you don’t need to worry about setting it up. It takes you through a simple installer. Very user-friendly and easy to use and of course really, really fast. The best thing of all is it gives you a full CMS out of the box where you can add or delete your content without rewriting the code. For the downside, our experience with it showed it is very sensitive when it comes to  .md and .yaml files, but hey – nothing is perfect.

Statemic

Statamic

Download it, install it, give it a try and let us know what you think! Don’t forget to subscribe below for more of the latest technology!

Subscribe to our mailing list

Leave a comment
More Posts
Comments

Comments are closed.