Development
Learn how to customize this theme using the tools included.
To set up the theme, you need:
- A command-line tool.
- Node.js (includes npm).
Open your terminal, ensure you are in the same directory of the unzipped theme, and run the following command to install all dependencies:
In the terminal, run the following command:
It compiles the source files, generates the site and starts a local server at localhost:8080
.
Front matter
The theme uses Eleventy static site generator.
You can add metadata in your page templates:
---
layout: base
title: Home
description: Boost is a clean and accessible theme for Bootstrap.
permalink: /
---
- Layout: the template used to wrap the content.
- Title: page title.
- Description: page meta description.
- Permalink: allows remapping your template's URI.
Images
Eleventy only copies the images from the src folder to the dist folder. To get faster load times, use the right image size and compress them using an app like Squoosh (Web app) or ImageOptim (Mac app).
Production
Once your site is ready to publish, run the following command:
It generates the site from scratch and removes unused CSS.