# Hugo Taxonomies Guide ## Current Status Taxonomies (categories and tags) are **currently disabled** in this Hugo site to keep it minimal. ## What Are Taxonomies? Hugo taxonomies are classification systems for your content: - **Categories** - Broad groupings (e.g., "Technology", "Personal", "Projects") - **Tags** - Specific keywords (e.g., "golang", "web-development", "tutorial") They're useful for blogs and content-heavy sites where visitors need to filter and find related content. ## Why Are They Disabled? For a minimal personal website without a blog, taxonomies add unnecessary complexity: - Creates extra pages (`/categories/`, `/tags/`) that aren't used - Requires additional template files - Generates warning messages during builds ## How to Re-enable Taxonomies When you're ready to add a blog or need content categorization: ### Step 1: Enable Taxonomies in Configuration Edit `hugo.toml` and **remove** or **comment out** this line: ```toml # Remove this line: disableKinds = ['taxonomy', 'term'] ``` Or comment it out to keep for reference: ```toml # Taxonomies disabled for minimal site - uncomment to enable: # disableKinds = ['taxonomy', 'term'] ``` ### Step 2: Create Taxonomy Templates Create two template files in `layouts/_default/`: #### `layouts/_default/taxonomy.html` This template displays all content items for a single category or tag. ```html {{ define "main" }}
{{ .Data.Plural }}: {{ len .Pages }} {{ if eq (len .Pages) 1 }}item{{ else }}items{{ end }}
{{ .Description }}
{{ end }} {{ end }}Browse all {{ .Data.Plural | lower }}
{{ len .Pages }} {{ if eq (len .Pages) 1 }}post{{ else }}posts{{ end }}