CMT Sites Documentation

Creating a New Site

Last modified with commit 013f4f2 on by Sara Deric.

To create a new site, follow these steps:

Client defines these:

Developer Setup Steps

1. Configuration Files

Add brand to deployment:

Hugo config:

CMS config:

2. Brand Styling

File: assets/{brand}/styles/_brand-theme.scss

Define CSS variables for:

3. Content & Data Files

Content:

Data files in data/{brand}/:

Translations:

4. Static Assets

Directory: static/{brand}/

5. Decap Turbo

  1. Log in to Decap Turbo dashboard
  2. Add new site with project name: cmt-{brand}
  3. Get the Turbo Site ID from dashboard
  4. Add ID to bin/build.sh in resolve_turbo_site_id() function:
    {brand})
      TURBO_SITE_ID="your-turbo-site-id-here"
      ;;
    

6. Cloudflare Deployment

  1. Create Pages project: cmt-{brand}
  2. Connect to GitHub repository
  3. Add required environment variables:
    • HUGO_VERSION (e.g., 0.154.5)
    • NODE_VERSION (e.g., 20)
  4. Disable automatic deployments - we use GitHub Actions for builds instead

Timeline

The deadline for creating a new site is 5 working days since the client provides all necessary inputs defined above. The client must inform the contractor 2 weeks in advance about the intention to create a new site.