We often create small “landing page” websites for clients. The goal might be
to measure interest in a business or product idea and/or collect email
addresses, among other things. This is a guide on how we typically build those
websites, using Middleman.
Middleman is a Ruby-based static site generator. Templates get
‘built’ using a build command and the output is a directory of static, HTML,
it familiar and feasible to migrate to Rails, if that need ever arises.
Middleman provides built-in features for
looping over YAML or JSON data when dealing with lots of data.
It can also render Markdown and supports
We maintain a Middleman template, which is set up with
our common defaults and ready to deploy to Netlify. Review the project’s
readme for how to install and use it.
Official and community-driven extensions give Middleman extra functionality.
Some extensions we’ve found useful are:
Use Netlify to deploy Middleman projects. We have a team account
which you can add yourself to (credentials are in 1Password).
Netlify provides continuous deployment when connected to a GitHub repo,
deploying automatically whenever you push to
master. It also provides
deploy previews for Pull Requests.
Beyond deployment, Netlify provides add-ons for
collecting data through HTML forms, analytics, and