The Contact section gives visitors a way to reach you directly from the homepage. It supports two modes: a simple mailto button that opens the visitor’s email client, or a FormSpree-powered contact form that accepts name, email, and message submissions without any backend server. Both modes are configured underDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/gurusabarish/hugo-profile/llms.txt
Use this file to discover all available pages before exploring further.
params.contact in your hugo.yaml.
Enable the Section
Set to
true to display the Contact section on the homepage.Common Fields
These fields apply to both contact modes:Section heading. Defaults to the built-in i18n string
"Get in Touch" when omitted.A short message displayed above the button or form. Supports emoji shortcodes (e.g.,
:wave:). Markdown is also rendered.Label text for the submit or mailto button. Falls back to the i18n string
"Get in Touch" when omitted.Mode 1 — Mailto Button
The simplest setup: a single button that opens the visitor’s default mail client with a pre-addressed email. The section renders this mode whenformspree.enable is not true and at least one of btnLink or email is set.
The full
mailto: URL (or any URL) for the button (e.g., mailto:hello@example.com). When both btnLink and email are set, btnLink takes priority.An alternative to
btnLink. Provide just the email address and Hugo Profile will automatically construct the mailto: link.Mode 2 — FormSpree Form
Enable an embedded contact form powered by FormSpree. Whenformspree.enable is true, the mailto button mode is bypassed entirely.
Set to
true to switch from the mailto button to the embedded FormSpree form.Your FormSpree form ID. Extract it from your endpoint URL — for
https://formspree.io/f/abcdefgh the ID is abcdefgh.Placeholder text for the email input field. Defaults to the i18n string
"Enter your email".Placeholder text for the message textarea. Defaults to the i18n string
"Enter your message".Number of visible rows for the message textarea.
Configuration Examples
- FormSpree Form