Knowledge Categories
A grid of knowledge-base category cards that routes visitors to the right docs fast.
Surface the questions people actually ask — popular, trending, or hand-picked — atop your help center.
Add it to any Hugo page's sections list — no build step.
Quick start
Drop this into your page's front matter, under the sections list. Edit the values, and HugoBlox renders the block — no build step.
- block: trending-questions
design:
spacing:
padding:
- 3rem
- "0"
- 3rem
- "0"
content:
title: Trending questions
subtitle: Top searches from the last 7 days.
count: 4
questions:
- question: How do I deploy Hugo Blox to Netlify?
answer_preview: Use the provided CI workflow or run `hugo --gc --minify`...
link: /docs/deploy/netlify/
badge:
text: 🔥 Popular
color: bg-amber-100 text-amber-800
views: 1200
upvotes: 86
- question: Where can I customize Tailwind 4 tokens?
answer_preview: Tokens are defined in `modules/blox-tailwind/assets/`...
link: /docs/style/tokens/
author: geo
view_all:
text: Browse all questions
link: /faq/Reference
Every option the Trending Questions block accepts, generated from its schema.
Properties set under the block's content key.
| Property | Type | Default | Description |
|---|---|---|---|
title | string | — | Engagement heading, under 4 words. E.g. 'Trending questions', 'Hot topics'. |
subtitle | string | — | Contextual subtitle, under 8 words. E.g. 'Top searches from the last 7 days.' |
count | integer | 4 | Number of items to pull when auto-querying pages with `trending: true` |
questions | object[] | — | Static fallback list of questions to render |
questions[].questionrequired | string | — | Natural user question, under 12 words. Start with 'How', 'What', 'Where'. |
questions[].answer_preview | string | — | 1-sentence answer teaser, under 15 words. End with '...' |
questions[].linkrequired | string | — | URL to the full answer/article |
questions[].badge | object | — | — |
questions[].badge.text | string | — | — |
questions[].badge.color | string | — | Tailwind classes applied to the badge |
questions[].author | string | — | — |
questions[].views | string | number | — | — |
questions[].upvotes | integer | number | — | — |
view_all | object | — | — |
view_all.textrequired | string | — | — |
view_all.linkrequired | string | — | — |
Compose
Blocks that pair naturally with Trending Questions on the same page.
Frequently asked
Ready to build with the Trending Questions block?
More blocks like this
A grid of knowledge-base category cards that routes visitors to the right docs fast.
Showcase focus areas, services, or research themes as rich cards with optional metrics and CTAs.
Answer last-minute objections in a clean accordion — place it before the final CTA where it lifts conversion.
A hero built around a prominent search box — the front door to docs and knowledge bases.