From f34b1b199b541158d40151cc90d0b9989422021e Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Fri, 3 Apr 2026 12:47:40 +0200 Subject: [PATCH 1/2] feat: document illustrated contact form --- content/blocks/contact-form.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/content/blocks/contact-form.md b/content/blocks/contact-form.md index cb300cd..5dc7f46 100644 --- a/content/blocks/contact-form.md +++ b/content/blocks/contact-form.md @@ -16,7 +16,7 @@ The `contact-form` content block renders a contact form powered by a form provid The following render hook uses automatic form detection by Netlify. The form itself includes fields for name, email address, and a message. It uses a honeypot field and reCAPTCHA v2 to reduce spam submissions. -{{< file file="./layouts/_partials/assets/netlify-contact-form-hook.html" >}} +{{< file file="./layouts/_partials/assets/netlify-contact-form-hook.html" show=false >}} > [!IMPORTANT] > The render hook example sets `data-netlify="false"` to reduce noise on the current website. Set it to `true` to enable automatic form detection by Netlify. @@ -42,6 +42,32 @@ Assign the render hook and callback action using the `hook` and `action` argumen {{< /example-bookshop >}} +### Illustrated Contact Form + +You can render an illustrated contact form by assigning a value to `illustration`: + + +{{< example-bookshop lang="bookshop" >}} + +```yml +- _bookshop_name: contact-form + heading: + preheading: Get in touch + title: Contact Us + content: We'd love to hear from you. Send us a message and we'll respond as soon as possible. + illustration: + image: /img/placeholder.png + class: d-none d-md-block + hook: assets/netlify-contact-form-hook.html + action: #! + background: + color: body-tertiary + subtle: false +``` + +{{< /example-bookshop >}} + + ## Arguments The content block supports the following arguments: From 9e3a77a23ab543fc066f3bf02cee4f3eecc6eb1b Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Fri, 3 Apr 2026 12:47:50 +0200 Subject: [PATCH 2/2] chore: update dependencies --- exampleSite/go.mod | 2 +- exampleSite/go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/exampleSite/go.mod b/exampleSite/go.mod index 7d8392e..a95c979 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -2,4 +2,4 @@ module github.com/gethinode/mod-docs-example go 1.19 -require github.com/gethinode/mod-docs v1.9.0 // indirect +require github.com/gethinode/mod-docs v1.10.1 // indirect diff --git a/exampleSite/go.sum b/exampleSite/go.sum index a82f099..fecc6ee 100644 --- a/exampleSite/go.sum +++ b/exampleSite/go.sum @@ -26,3 +26,5 @@ github.com/gethinode/mod-docs v1.8.0 h1:l9K5oJlLcAmlvoNZB1aBouv7VC8f4sCrpD7iyHxC github.com/gethinode/mod-docs v1.8.0/go.mod h1:ru1w0fHqFocjDIMV0dm40OwhBw5k4UncCS8iO/1S5kI= github.com/gethinode/mod-docs v1.9.0 h1:w27gIwjtRZfR97tcGJr1CYomjQ/TDpZllQAyRHbwSrE= github.com/gethinode/mod-docs v1.9.0/go.mod h1:ru1w0fHqFocjDIMV0dm40OwhBw5k4UncCS8iO/1S5kI= +github.com/gethinode/mod-docs v1.10.1 h1:k65ph7nGS0d1mgWoq/aNLJu9/le0A9Kct5OawkKYmLQ= +github.com/gethinode/mod-docs v1.10.1/go.mod h1:ru1w0fHqFocjDIMV0dm40OwhBw5k4UncCS8iO/1S5kI=