Map
An interactive, open-source map (MapLibre + OpenFreeMap, no API key) with an address card and directions CTA.
Contact details, address, social links, and an optional form in a clean, modern card layout.
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: contact-info
content:
title: Contact the lab
subtitle: We respond within 2 business days.
visit_title: Visit us
address:
lines:
- AI Lab, Engineering Building
- 123 Innovation Way
- Cambridge, MA
office_hours:
- "Mon–Thu: 10:00–16:00"
- "Fri: Remote"
map_url: https://maps.google.com/?q=Cambridge
email: [email protected]
phone: +1 415 000 0000
social:
- icon: brands/linkedin
url: https://linkedin.com/company/hugoblox
- icon: brands/x
url: https://x.com/hugoblox
prospective:
title: Prospective members
text: Tell us about your research interests and links to prior work.
button:
text: Apply
url: /apply
show_form: true
form_action: https://formspree.io/f/exampleOverview
Display comprehensive contact information for your lab or organization with a modern, responsive card layout.
sections:
- block: contact-info
content:
title: Contact Us
subtitle: Get in touch with our research team
visit_title: Visit Our Lab
connect_title: Connect With Us
address:
lines:
- Smith Laboratory
- Department of Computer Science
- University of Excellence
- 123 Science Drive
- Excellence City, EC 12345
- United States
office_hours:
- "Monday - Friday: 9:00 AM - 5:00 PM"
- "Lab Meetings: Fridays 2:00 PM"
email: [email protected]
phone: "+1 (555) 123-4567"
social:
- icon: brands/x
url: https://x.com/SmithLabResearch
- icon: brands/linkedin
url: https://linkedin.com/company/smith-lab
- icon: brands/github
url: https://github.com/smith-lab
prospective:
title: Prospective Members
text: Interested in joining our lab? We're looking for motivated researchers.
button:
text: View Open Positions
url: /opportunities
map_url: https://maps.google.com/?q=University+of+Excellence
show_form: false
design:
css_class: "bg-gray-50 dark:bg-gray-900"
spacing:
padding: ["3rem", 0, "3rem", 0]
lines: Array of address line stringsicon: Icon identifier (e.g., "brands/x", "brands/linkedin")url: Social media profile URLtitle: Section headingtext: Description textbutton: CTA button with text and urlStandard design options apply including:
css_class: Background and styling classesspacing: Padding configurationProvide a map_url to link to Google Maps, Apple Maps, or other services:
map_url: "https://maps.google.com/?q=Your+Location"
For inline maps, provide the iframe HTML in map_embed:
map_embed: |
<iframe src="https://www.google.com/maps/embed?..."
width="100%" height="450" style="border:0;"
allowfullscreen="" loading="lazy"></iframe>
Enable the built-in contact form:
show_form: true
form_action: "https://formspree.io/f/YOUR_FORM_ID"
Note: You'll need to set up a form handler service like Formspree, Netlify Forms, or custom endpoint.
The block uses modern card-based design with:
Reference
Every option the Contact Info block accepts, generated from its schema.
Properties set under the block's content key.
| Property | Type | Default | Description |
|---|---|---|---|
title | string | Contact Us | Main section title |
subtitle | string | — | Section subtitle |
username | string | me | Author username to pull fallback contact details from |
visit_title | string | Visit Us | Title for the visit section |
connect_title | string | Connect | Title for the connect section |
text | string | — | Connect section intro text |
address | object | — | Physical address information |
office_hours | object | — | Office hours information |
email | string | — | Contact email address |
phone | string | — | Contact phone number |
social | object | — | Social media links |
prospective | object | — | Information for prospective members |
prospective.title | string | Prospective Members | — |
prospective.text | string | — | Short note for new collaborators or recruits |
prospective.button | object | — | — |
prospective.button.textrequired | string | — | — |
prospective.button.urlrequired | string | — | — |
map_url | string | — | URL to external map service |
map_embed | string | — | HTML embed code for map (e.g., Google Maps iframe) |
show_form | boolean | false | Show a basic contact form |
form_action | string | — | Form submission URL |
Compose
Blocks that pair naturally with Contact Info on the same page.
Frequently asked
Ready to build with the Contact Info block?
More blocks like this
An interactive, open-source map (MapLibre + OpenFreeMap, no API key) with an address card and directions CTA.
Answer last-minute objections in a clean accordion — place it before the final CTA where it lifts conversion.
Introduce your team, lab, or studio with grouped, filterable member profiles.