Dev Hero
A dark-mode, developer-focused hero with gradient effects, social links, and call-to-action buttons.
A hero built around a prominent search box — the front door to docs and knowledge bases.
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: search-hero
design:
background:
gradient_mesh:
enable: true
style: waves
colors:
- primary-500/25
- secondary-500/25
animation: float
content:
badge:
text: Instant answers
show_pulse: true
title: Master ==AI tools==. Find answers faster.
subtitle: Search our docs, playbooks, and notebooks.
search_placeholder: Search documentation...
suggestions:
- Get started
- Deploy with Hugo Blox
stats:
- value: 250+
label: articles
- value: 9/10
label: avg. satisfactionOverview
A modern hero section with prominent search functionality, perfect for knowledge bases and documentation sites.
sections:
- block: search-hero
content:
title: "Your Knowledge Hub"
subtitle: "Find answers to all your questions"
Use ==text== syntax to apply gradient highlighting to any words or phrases:
title: "Master ==AI Tools=="
Result: "Master" in regular text, "AI Tools" with gradient
title: "Master ==AI Tools==. ==Boost Your Productivity.=="
Result: Both "AI Tools" and "Boost Your Productivity" highlighted
title: "Build ==amazing== websites with ==Hugo Blox=="
Result: "amazing" and "Hugo Blox" highlighted within the sentence
# en.yaml
- id: hero_title
translation: "Master ==AI Tools==. ==Boost Productivity.=="
# es.yaml
- id: hero_title
translation: "Domina ==Herramientas IA==. ==Aumenta Productividad.=="
Each language can highlight naturally!
sections:
- block: search-hero
content:
badge:
text: "500+ AI answers added this week"
show_pulse: true # Shows pulsing dot indicator
title: "Master ==AI Tools==. ==Boost Your Productivity.=="
subtitle: "Get instant answers to your AI questions from our comprehensive knowledge base."
search_placeholder: "Ask anything about AI tools, prompts, or workflows..."
suggestions:
- "ChatGPT prompts"
- "Midjourney tips"
- "AI automation"
- "Claude vs GPT-4"
stats:
- value: "2,500+"
label: "Expert Answers"
- value: "50K+"
label: "Monthly Users"
- value: "4.9/5"
label: "User Rating"
design:
background:
gradient_mesh:
enable: true
style: "orbs" # orbs, waves, dots, grid
animation: "pulse" # pulse, float, rotate, none
intensity: "subtle" # subtle, medium, bold
colors:
- "primary-500/20"
- "primary-600/20"
spacing:
padding: ["8rem", "0", "6rem", "0"]
badgetext (string): Badge textshow_pulse (boolean): Show pulsing dot indicatortitle==text== for gradient highlighting"Build ==Amazing== Websites"subtitlesearch_placeholdersuggestions["Topic 1", "Topic 2"]statsvalue (string): Metric value (e.g., "2,500+")label (string): Metric descriptionSee Gradient Mesh Guide for complete background options.
The ==text== highlighting uses:
background: linear-gradient(to-right, primary-600, primary-500);
background-clip: text;
This automatically adapts to your site's primary color theme.
Stats automatically:
The search button automatically:
title: "Master ==AI Tools==. ==Boost Your Productivity.=="
title: "==Comprehensive== Documentation for ==Developers=="
title: "Build ==Faster==. Ship ==Better==. Scale ==Effortlessly.=="
title: "Advancing ==Science== Through ==Collaboration=="
✅ Good: Highlight unique value or action words
title: "Learn ==Faster== with AI"
❌ Bad: Highlight common words
title: "Learn Faster ==with== AI"
✅ Good: 1-3 highlighted phrases max
title: "Master ==AI Tools==. Boost ==Productivity==."
❌ Bad: Everything highlighted
title: "==Master== ==AI== ==Tools==. ==Boost== ==Your== ==Productivity==."
Highlighted text should be:
title: "Transform ==Your Business== with AI"
title: "Learn ==Smarter==, Not ==Harder=="
==([^=]+)== matches text between double equals<span class="bg-gradient-to-r from-primary-600 to-primary-500 bg-clip-text text-transparent">text</span>Part of HugoBlox Kit - https://hugoblox.com
Reference
Every option the Search Hero block accepts, generated from its schema.
Properties set under the block's content key.
| Property | Type | Default | Description |
|---|---|---|---|
badge | object | — | Optional badge displayed above the title |
badge.textrequired | string | — | Badge text |
badge.show_pulse | boolean | false | Show pulsing dot indicator |
titlerequired | string | — | Main title. Use ==text== syntax to apply gradient highlighting to words or phrases. |
subtitle | string | — | Subtitle text |
search_placeholder | string | Search for answers... | Search input placeholder |
suggestions | string[] | — | Quick search suggestion chips that open Pagefind with a preset query. Clicking a suggestion opens the search modal with that text pre-filled. |
stats | object[] | — | Optional lightweight stats below the search box |
stats[].valuerequired | string | — | Stat value (supports Markdown) |
stats[].labelrequired | string | — | Stat label |
Compose
Blocks that pair naturally with Search Hero on the same page.
Frequently asked
Ready to build with the Search Hero block?
More blocks like this
A dark-mode, developer-focused hero with gradient effects, social links, and call-to-action buttons.
Convert from the first scroll — headline, value prop, dual CTAs, announcement pill, and split-media layouts.
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.