Carrara Cafe Site Manual & Editing Guide

1. Overview of the Tech Stack

  • Hugo: A lightning-fast static site generator that compiles markdown, data files, and templates into plain HTML/CSS with no underlying database to crash.
  • UIkit 3: A lightweight, modular frontend framework used for styling grids, sticky bars, modals, and responsive navigation.
  • PDF.js & PageFlip: Powers the interactive HTML5 magazine and publication flipbook reader directly inside full-screen modals.

2. Project Directory Structure

  • data/: Stores data lists like your downloads database (downloads.toml or downloads.json).
  • layouts/: Contains HTML templates (e.g., layouts/publications/list.html for magazines, and download layout templates).
  • assets/: Used for assets that benefit from Hugo’s processing pipeline (like recursive subfolder thumbnail globbing and image resizing).
  • static/: Holds raw binary files that should be copied directly without processing—such as raw downloadable .zip/.car files, direct PDF publications, and favicons.

3. How to Update & Edit Content

Adding or Updating Downloads

  1. Place the raw file (.zip, .car, etc.) into static/downloads/ (or nested subfolders).
  2. Place the thumbnail image into assets/downloads/thumbnails/ (nested subfolders are scanned recursively).
  3. Update your downloads data file in data/downloads with the title, author, category, filename, and thumbnail name.

Adding New Publications & Magazines

  1. Drop the issue PDF directly into static/publications/. Hugo automatically reads the folder and generates a grid card for every PDF.
  2. Place the matching cover image (.jpg or .png) into static/images/publications/ or assets/images/publications/, making sure the filename matches the PDF filename.

4. Running the Site Locally

  1. Open your terminal:
    cd ~/WEB/Carrara-Cafe-2026-Hugo/carraracafe-hugo