Skip to content

Site Configuration

Configure your HugoBlox site’s global settings in config/_default/params.yaml.


The config/_default/params.yaml file is the control center of your site. It handles everything from your site’s name and SEO description to feature toggles like comments and search.

hugoblox:
schema: "2.0"
identity:
name: "Your Name"

That’s it! Everything else has sensible defaults.

Here are the available configuration sections:

hugoblox:
# --- Core ---
identity: # Who you are (SEO, Name, Social)
theme: # Visual appearance -> see Theming Guide
# --- Navigation ---
header: # Navbar settings (search, theme toggle)
footer: # Footer text and copyright
# --- Content ---
typography: # Fonts and sizing
layout: # Spacing and shapes
content: # Math, TOC, citations settings
locale: # Date/time formats
# --- Features ---
seo: # SEO overrides
search: # Site search provider
comments: # Comment systems (Giscus, etc)
analytics: # Google Analytics, etc
# --- Technical ---
verification: # Search engine verification codes
repository: # "Edit this page" links
security: # Security headers (CSP)
privacy: # Privacy banner & settings
debug: # Development tools
pro: # Pro subscription features

Tell visitors and search engines who you are. This information appears in your navbar, footer, and SEO meta tags.

hugoblox:
identity:
# Site name (shown in navbar, footer, browser title)
name: "Dr. Jane Smith"
# Optional: Legal entity for copyright (defaults to name)
organization: "Stanford University"
# Schema.org type for search engines
type: person # person | organization | local_business
# Short headline displayed on your site
tagline: "AI Researcher | Stanford"
# Site description for SEO and social sharing
description: "AI researcher specializing in machine learning..."
# Social accounts (used for Twitter Cards, etc.)
social:
twitter: "janesmith" # Without the @ symbol

Configure your site’s navigation bar behavior and features.

hugoblox:
header:
enable: true
style: navbar # navbar | navbar-simple | minimal
sticky: true # Stick to top on scroll
align: center # left | center | right
# Feature toggles
search: true
theme_toggle: true
theme_picker: false # Show theme chooser dropdown
language_switcher: true
# Call-to-action button
cta:
enable: false
text: "Contact"
url: "/contact/"

Menu links are defined in config/_default/menus.yaml (not params.yaml):

main:
- name: Home
url: /
weight: 10
- name: Publications
url: /publications/
weight: 20

Customize your site footer and copyright notice.

hugoblox:
footer:
style: minimal # minimal | columns | centered
language_switcher: true
text: "" # Custom HTML/text
copyright:
notice: "© {year} {name}. This work is licensed under {license}"
license:
type: cc # cc | all_rights | custom
allow_derivatives: false
share_alike: true
allow_commercial: false

Template Variables:

  • {year} - Current year
  • {name} - From identity.organization (or identity.name)
  • {license} - Creative Commons license link

Adapt date, time, and address formats for your region.

hugoblox:
locale:
date_format: "Jan 2, 2006" # Go time format
time_format: "3:04 PM"
address_format: en-us

Common Formats:

locale:
date_format: "Jan 2, 2006"
time_format: "3:04 PM"
address_format: en-us

Configure how content is rendered and enhanced.

hugoblox:
content:
math:
enable: false # LaTeX math rendering (KaTeX)
toc:
enable: true # Table of contents
reading_time:
enable: true # Reading time estimates
citations:
style: apa # apa | mla | chicago | ieee


Enable “Edit this page” links for collaborative documentation sites.

hugoblox:
repository:
enable: true
url: "https://github.com/username/repo"
branch: main
content_dir: content

Then mark pages as editable in their front matter:

---
title: My Page
editable: true
---

Configure security headers for production (requires blox-plugin-netlify).

hugoblox:
security:
csp:
policy: "" # Content Security Policy
report_only: false
frame_options: deny # deny | sameorigin | allow
permissions_policy: ""

🌟 HugoBlox Pro

Pro subscribers can optionally hide the “Powered by HugoBlox” attribution and get priority support.

Get Pro →

hugoblox:
pro:
hide_attribution: false # Requires Pro + HUGO_BLOX_LICENSE env var

If you’re already a Pro user and wish to remove the footer attribution, first set the HUGO_BLOX_LICENSE secret from your Lemon Squeezy license: add it in GitHub (Settings → Secrets and variables → Actions) or as an environment variable in your Netlify site dashboard. For GitHub Pages, check that your GitHub Action includes the license as per this example. After that, enable hugoblox.pro.hide_attribution.

Any user (Pro or not) can join the Creator Program to earn commission on referrals:

  1. Apply to join the Creator Program
  2. Get your affiliate code after approval
  3. Add it to your config - your footer attribution link will automatically include it
  4. Start earning up to $174 per successful referral!
hugoblox:
pro:
affiliate_code: "your-affiliate-code" # Join Creator Program at hugoblox.com/affiliates

Here’s a fully configured params.yaml:

hugoblox:
schema: "2.0"
identity:
name: "Dr. Jane Smith"
type: person
description: "AI researcher at Stanford..."
social:
twitter: "janesmith"
theme:
mode: system
pack: minimal
typography:
font: serif
size: md
header:
enable: true
style: navbar
search: true
content:
math:
enable: true
citations:
style: apa
analytics:
google:
measurement_id: "G-XXXXXXXXXX"