HubSpot CMS Boilerplate

A straight-forward starting point for building a great website on the HubSpot CMS.

Documentationarrow-up-right | Demo websitearrow-up-right | Contributingarrow-up-right

Current versionarrow-up-right Latest commitarrow-up-right Contributorsarrow-up-right GitHub watchersarrow-up-right GitHub starsarrow-up-right GitHub forksarrow-up-right HubSpot website grader scorearrow-up-right Google Lighthouse desktop performance scorearrow-up-right Google Lighthouse SEO scorearrow-up-right Google Lighthouse accessibility scorearrow-up-right Licensearrow-up-right

Purpose

The HubSpot CMS Boilerplatearrow-up-right is designed to offer developers a head start in the website building process. While the HubSpot CMS Boilerplate represents HubSpot's opinionated best practices, we intend to learn from similar projects and feedback. We hope it offers inspiration and utility for all website projects!

Getting started

To download the HubSpot CMS Boilerplate using the HubSpot CMS CLI:

Before getting started, you will need to have Node.jsarrow-up-right installed, the HubSpot CMS CLIarrow-up-right installed, and we strongly suggest that you set up a HubSpot CMS Developer Sandboxarrow-up-right for your QA/testing environment.

  1. Navigate to the directory that you want to use for your project

  2. Run hs create website-theme <directory> to create a project from the HubSpot CMS Boilerplate

  3. Configurearrow-up-right the local development tools for the portal(s) you'd like to use for your project.

  4. Run hs watch --portal=<portal> src <directory> --initial-upload to upload all the files in the project and watch for changesarrow-up-right to files in the src directory

Please reference our Quick start guide to developing on the HubSpot CMSarrow-up-right and our Getting started with local developmentarrow-up-right articles for more information.

To use version control in your project using GitHub and GitHub Actions:

  1. Forkarrow-up-right the HubSpot CMS Boilerplate repository and clonearrow-up-right your forked repository to your computer

  2. Update the name of the directory that you'll be deploying to in your Design Manager in the .github/workflows/deploy.yml file (the current default dest_dir is cms-theme-boilerplate)

  3. Deploy changes to your Design Manager by pushing to the main branch of your forked repository

Please reference our HubSpot CMS deploy GitHub action pagearrow-up-right and Setting up continuous integration with a GitHub repository using GitHub Actions articlearrow-up-right for more information.

Style guide

For details about the HubSpot CMS Boilerplate's recommended best practices and code formatting, please reference our style guidearrow-up-right.

Contributing

If you’re interested in contributing to the HubSpot CMS Boilerplate, please read CONTRIBUTING.mdarrow-up-right and STYLEGUIDE.mdarrow-up-right to see how you can report an issue, make a feature request, or make a pull request.

Versioning

Previous releases and their documentation are available for downloadarrow-up-right. To provide transparency into future releases, we create a project board that documents our planning in preparation for each upcoming major and minor versionarrow-up-right.

Community

You can stay up to date with HubSpot CMS Boilerplate updates and discussions in the #hs-cms-boilerplate channel in the HubSpot Developer Slackarrow-up-right.

License

The code is available under the Apache License, Version 2.0arrow-up-right

Last updated