Skip to main content

Documentation 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.

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 under params.contact in your hugo.yaml.

Enable the Section

params.contact.enable
boolean
default:"false"
Set to true to display the Contact section on the homepage.

Common Fields

These fields apply to both contact modes:
params.contact.title
string
Section heading. Defaults to the built-in i18n string "Get in Touch" when omitted.
params.contact.content
string
A short message displayed above the button or form. Supports emoji shortcodes (e.g., :wave:). Markdown is also rendered.
params.contact.btnName
string
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 when formspree.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.
params.contact.email
string
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. When formspree.enable is true, the mailto button mode is bypassed entirely.
params.contact.formspree.enable
boolean
default:"false"
Set to true to switch from the mailto button to the embedded FormSpree form.
params.contact.formspree.formId
string
Your FormSpree form ID. Extract it from your endpoint URL — for https://formspree.io/f/abcdefgh the ID is abcdefgh.
params.contact.formspree.emailCaption
string
Placeholder text for the email input field. Defaults to the i18n string "Enter your email".
params.contact.formspree.messageCaption
string
Placeholder text for the message textarea. Defaults to the i18n string "Enter your message".
params.contact.formspree.messageRows
integer
default:"3"
Number of visible rows for the message textarea.

Configuration Examples

params:
  contact:
    enable: true
    # title: "Get in Touch"   # uncomment to override the default heading
    content: My inbox is always open. Whether you have a question or just want to say hi, I'll try my best to get back to you!
    btnName: Mail me
    btnLink: mailto:gurusabarisha@gmail.com
Sign up for a free account at formspree.io to get your form ID. The free tier allows up to 50 submissions per month with no credit card required.

Build docs developers (and LLMs) love