hugoblox.com/blocks/knowledge-categories
Knowledge baseFree · MITHugo

Knowledge Categories block

A grid of knowledge-base category cards that routes visitors to the right docs fast.

Add it to any Hugo page's sections list — no build step.

v1Version
15Options
MITLicense

Quick start

Add the Knowledge Categories block

Drop this into your page's front matter, under the sections list. Edit the values, and HugoBlox renders the block — no build step.

Add to your page's sections
- block: knowledge-categories
  content:
    title: Browse the knowledge base
    subtitle: Jump into the most active categories.
    categories:
      - category: research
        title: Research
        description: Lab notes, experiment trackers, and preprint workflows.
        icon:
          name: hero/beaker
          bg_color: bg-primary-100 dark:bg-primary-900/50
          text_color: text-primary-600 dark:text-primary-400
      - category: tutorials
        title: Tutorials
        description: Hands-on guides for Hugo Blox.
        count: 18
    view_all:
      text: See all categories
      link: /categories/

Reference

Configuration

Every option the Knowledge Categories block accepts, generated from its schema.

Content options

Properties set under the block's content key.

PropertyTypeDefaultDescription
titlestringKnowledge base heading, under 6 words. E.g. 'Browse the knowledge base'.
subtitlestringInviting subtitle, under 8 words.
categoriesrequiredobject[]Categories to render; uses real taxonomy counts when available
categories[].categorystringTaxonomy category name used for lookup (defaults to `title` when omitted)
categories[].titlestringDisplay label for the category card
categories[].descriptionstringOne-line category summary, under 12 words.
categories[].iconobject
categories[].icon.namestringIcon name (e.g., 'hero/book-open')
categories[].icon.bg_colorstringbg-primary-100 dark:bg-primary-900/50Background utility classes for the icon wrapper
categories[].icon.text_colorstringtext-primary-600 dark:text-primary-400Text color classes for the icon
categories[].countintegerOptional override for item count (otherwise uses taxonomy count)
categories[].linkstringOverride the category URL (defaults to taxonomy page)
view_allobject
view_all.textrequiredstring
view_all.linkrequiredstring

Compose

Works well with

Blocks that pair naturally with Knowledge Categories on the same page.

Frequently asked

Knowledge Categories block FAQ

  • Add a "block: knowledge-categories" entry to the sections list in your page's front matter, then fill in the content fields. HugoBlox renders it automatically — copy the example config above as a starting point.

Ready to build with the Knowledge Categories block?