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:
- Hammer Includes - Reuse HTML components across your site
- Variables - Create dynamic, maintainable content
- Clever Paths - Automatic path resolution for assets
- Assets - Manage stylesheets and JavaScript files
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.
Quick Start
- Learn what Content Mode is and why you'd want to use it
- Enable Content Mode and set up your first collection
- Understand core concepts like collections, content files, and templates
- See workflow examples for blogs, portfolios, and documentation sites
Complete Guide
- Configuration - Deep dive into content.config.json
- Content Files - Creating and structuring Markdown/YAML
- Templates - Building dynamic page templates
- Publishing & Scheduling - Control content visibility
- UI Management - Using Hammer's content interface
- Advanced Features - Relations, helpers, and more
- Troubleshooting - Solve common issues
- Best Practices - Tips for effective usage
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
- Hosting with Forge - One-click deployment with global CDN and automatic HTTPS
- CI/CD Workflows - Automated builds and deployments with Git integration
Getting Help
Need assistance? Here are some resources:
- Community Forum: Join the discussion
- Changelog: See what's new
- Troubleshooting: Common issues and solutions