After you have locally installed Hugo and deployed a copy of this theme, you can start configuring your site. This guide will walk you through the basics of configuring your site, including setting the site address (URL) and metadata.
How to configure your site #
1. Update site details #
- Open the
config/_default/hugo.yamlfile in your code editor. - Update the
baseURLwith the address of your site. - Update the
title.
baseURL: "https://example.com"
title: "My Hugo Site"2. Update theme variables #
Update organization and product details #
- Open the
config/_default/params.yamlfile in your code editor. - Update the
organizationto reflect your organization’s name. - Update the
productto reflect your product’s name.
Configure theme variant and mode #
The theme supports multiple branding variants and display modes:
# Theme Configuration
theme:
variant: "default" # Options: default, nvidia, opensource, enterprise
mode: "light" # Options: light, darkAvailable Variants:
default: Standard theme styling for general documentationnvidia: NVIDIA corporate branding and stylingopensource: Open source project stylingenterprise: Enterprise/corporate styling
Enable development features #
For development and debugging, you can enable additional features:
# Development & Debug Settings
debug: false # Set to true to enable template debugging informationWhen debug: true is set, the theme will show a debug panel in development mode with:
- Current template information
- Template execution call stack
- VS Code integration links
- Performance insights
Update feature settings #
You can optionally update the features section to enable or disable certain theme features.
# Example site parameters
# Copy relevant sections to your main config
logo: '/images/milo.png'
names:
organization: 'Example Org'
product: 'Example Product'
version:
major: 0
minor: 0
patch: 3
article:
childArticles:
display: true
count: 7
titleTrunc: 90
descTrunc: 90
nextPrev:
display: true
trunc: 35
chat:
display: true
# Sidebar TOC (right sidebar)
toc:
display: true
# Inline components (within article content)
inlineToc:
display: false
showProgress: false
pageResources:
display: true
# Content status warnings (draft and expiry alerts)
statusWarnings:
display: true
# Enhanced metadata section (dates, author, reading time, word count)
metadata:
display: true
# Related content section (shows related pages in same section)
relatedContent:
display: true
# Default notebook repository configuration
notebook:
# Default repository URL for notebooks (can be overridden per page)
defaultRepoUrl: "https://github.com/nvidia/notebook-examples"
# Default branch (can be overridden per page)
defaultBranch: "main"
# Development & Debug Settings
debug: false # Enable debugging to see what parameters are loaded3. Environment-specific configuration #
The theme supports environment-specific configurations using Hugo’s config directory structure:
config/
├── _default/ # Base configuration
├── nvidia/ # NVIDIA variant overrides
├── open-source/ # Open source variant overrides
├── enterprise/ # Enterprise variant overrides
└── offline/ # Offline build configurationUsage examples:
# Default configuration
hugo server
# NVIDIA variant
hugo server --config config/_default,config/nvidia
# Open source variant
hugo server --config config/_default,config/open-source
# Enterprise variant
hugo server --config config/_default,config/enterprise4. Production vs Development #
The theme automatically optimizes assets based on Hugo’s environment:
- Development (
hugo server): Unminified assets, debug features enabled - Production (
hugo --environment production): Minified assets, optimized for performance
The debug parameter only shows debug information in development mode, regardless of the setting.