Documentation

Complete guide to building static sites with Hammer for Mac. Learn about Hammer tags, Content Mode, hosting, and more.

Welcome to Hammer Documentation

Hammer for Mac is a powerful static site generator that makes building websites fast, simple, and enjoyable. This documentation covers everything you need to know to build amazing static sites with Hammer.

Whether you're building a personal blog, a portfolio, a documentation site, or a complex web application, Hammer provides the tools you need to create beautiful, performant static sites.

Hammer Tags

Hammer tags are powerful directives that extend HTML with dynamic functionality. Use them to include components, manage variables, handle assets, and create dynamic content.

<!-- @include _header -->
<!-- @var pageTitle = "Welcome" -->
<!-- @stylesheet style -->
<!-- @javascript main -->

Getting Started

Start with these essential Hammer tags:

Advanced Features

  • Navigation Helpers - Automatic current page highlighting
  • Live Reload - Automatic browser refresh during development
  • Todos - Track tasks directly in your code
  • Conditionals - Show or hide content based on conditions
  • Loops - Iterate over arrays and collections

Content Mode

Content Mode transforms Hammer into a content-driven static site generator. Generate multiple pages from templates, manage content in Markdown and YAML files, and build dynamic sites with ease.

New Feature: Content Mode is perfect for blogs, documentation sites, portfolios, and any site with repeating content structures.

Quick Start

  1. Learn what Content Mode is and why you'd want to use it
  2. Enable Content Mode and set up your first collection
  3. Understand core concepts like collections, content files, and templates
  4. See workflow examples for blogs, portfolios, and documentation sites

Complete Guide

Command Line

Hammer CLI brings the same build engine to your terminal. Build sites, validate content, run health checks, and integrate Hammer into CI/CD pipelines and automation workflows.

Quick Start

  1. Learn what the CLI is and how it relates to the Hammer app
  2. Install and run your first build from the terminal
  3. Explore the full command reference for build, check, info, and doctor

Going Further

Hosting & Deployment

Deploy your Hammer sites to production with ease. Hammer integrates seamlessly with Forge for one-click deployment, or use CI/CD workflows for automated deployments.

Deployment Options

Getting Help

Need assistance? Here are some resources: