Workflow
This guide will walk you through every step of working with a Vermeer project.
Prerequisites
- Node.js —
v20.17.0
or higher (runnode -v
to check). - Hugo extended —
v0.134.2
or higher (runhugo version
to check) - Text editor — We recommend VS Code with these extensions.
- Terminal — Thulite is accessed through its command-line interface (CLI).
Start a new project
You can download the Vermeer ZIP file from the My Orders page.
Get your new Vermeer project up and running locally:
Create a new project
Run the following command in your terminal to create a new Thulite + Vermeer project:
Enter a
project name
— for examplevermeer-project
— when asked.This will create a new project directory with all the necessary files and configurations for your site.
Install the Vermeer theme
Download the Vermeer ZIP file and extract all files. Copy the contents of the
vermeer-<version>/vermeer-<version>
directory — for examplevermeer-1.1.0/vermeer-1.1.0
— to thethemes/vermeer
folder in your project.Install dependencies
cd
into your new project directory and install the dependencies:Start the development server
You can now start Hugo’s development server and see a live preview of your project while you build!
Edit your project
To make changes to your project, open your project folder in your code editor. Working in development mode with the development server running allows you to see updates to your site as you edit the code.
Start the development server
When working locally, Hugo’s development server lets you preview your work and automatically refreshes your browser when you make changes.
Inside your project directory, run the following command to start the development server:
This will log a message to your terminal with the URL of your local preview. Open this URL to start browsing your site.
Build your site
To check the version of your site that will be created at build time, quit the development server (Ctrl + C) and run the appropriate build command for your package manager in your terminal.
Build your site for production:
Hugo will build a deploy-ready version of your site in a separate folder (public/
by default) and you can watch its progress in the terminal. This will alert you to any build errors in your project before you deploy to production.
Preview your site
To preview the built version of your site locally, run the appropriate preview command for your package manager in your terminal.
Preview your production build:
Note that, this previews your code as it existed when the build command was last run. This is meant to give you a preview of how your site will look when it is deployed to the web. Any later changes you make to your code after building will not be reflected while you preview your site until you run the build command again.
Use (Ctrl + C) to quit the preview and run another terminal command, such as restarting the development server to go back to working in development mode which does update as you edit to show a live preview of your code changes.
Deploy your site
You may wish to deploy your new site right away, before you begin to add or change too much code. This is helpful to get a minimal, working version of your site published and can save you extra time and effort troubleshooting your deployment later.