From 9206c784bf64313f3d28190a8595ce588d6078ac Mon Sep 17 00:00:00 2001 From: Clara Wildpaner Date: Sun, 4 Apr 2021 16:00:22 +0200 Subject: [PATCH] Make contact form configurable --- exampleSite/config.toml | 16 ++++++++++++++++ layouts/contact/list.html | 21 +++++++++++---------- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d6e9f59..5c3df9a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -39,6 +39,22 @@ summarylength = 25 googleAnalitycsID = "Your ID" # We're using formspree.io for form handling, paste your formspree url below formspreeFormUrl = "https://formspree.io/myykjpje" + + # Contact Form + [params.contactForm] + placeholder_first_name = "First Name" + placeholder_last_name = "Last Name" + placeholder_email = "Email" + placeholder_project_type = "Project Type" + placeholder_about_the_project = "About the Project" + send_message = "Send Message" + + [[params.contactForm.projectType]] + value = "gd" + title = "Graphics Design" + [[params.contactForm.projectType]] + value = "wd" + title = "Web Design" # Navbar Action Button [params.navAction] diff --git a/layouts/contact/list.html b/layouts/contact/list.html index 889a8f6..f20f73f 100644 --- a/layouts/contact/list.html +++ b/layouts/contact/list.html @@ -13,31 +13,32 @@
- +
- +
- +
- +
@@ -50,4 +51,4 @@
-{{ end }} \ No newline at end of file +{{ end }}