The State of Static

Not just for prototypes anymore.

http://www.gregboggs.com/ - @gregory_boggs

Conference hashtag: #devsigner

Session evaluation: devsignercon.com/eval

By Greg Boggs

What are some problems when building websites with WordPress or Drupal?

Lets make a list!

No really, please help!

mySQL deadlock on cache table

Anything goes wrong with the database, suddenly you don't have a website

PDO exception error

Performance, speed

Cache invalidation

Impose a way of thinking, Drupal wants to be a community website, WP wants to be a blog

Bigger hosting requirements, good database, complex hosting

They incur technical debt right out of the box

What is a static website?

Static Website Generator

A static generator does the building when you create your content. Write once. Read many times. Learn More >

A generator you may have heard of is called Jekyll. I like Hugo. It's like WordPress. Except it's fast, won't be hacked, and doesn't need security updates.

We seriously need to update Wikipedia.

Static Advantages

Let's define the common pieces.

* Thanks Marlene!

Ok, let's look at some code.

Print variables:

{{ .Site.Params.Author }}

Use conditions:

{{ if ne .Description "" }}{{ .Description }}{{end}}

Repeat yourself:

{{ range first 5 .Site.Recent }}

Static websites are for prototypes.

Sure, blogs are easy - comments, pagination, archives...

What else you got?

So, when should I use a CMS?

Logged in websites

User generated content

Websites over 600,000 pages