From 7852a69245bed2bd076930bc706a8a3cc4ed797a Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Fri, 27 May 2022 15:05:47 +0200 Subject: Migrate to formspark.io --- exampleSite/config.toml | 4 +++- exampleSite/content/about.md | 1 + exampleSite/content/contact.md | 2 +- exampleSite/content/thanks.md | 9 +++++++++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 exampleSite/content/thanks.md (limited to 'exampleSite') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9224727..31b696c 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -151,9 +151,11 @@ disableKinds = ['RSS'] [params.contact] # Formspree URL, used in contacts form - formAction = 'https://formspree.io/f/example' + formAction = 'https://submit-form.com/example' # Contact form email subject emailSubject = 'Contact form submission' + # After successful submit, where should the user be redirected? + thanksUrl = '/thanks' [params.assets] # Site icons, relative to ./static diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md index 5b8fd5f..f900d71 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about.md @@ -45,6 +45,7 @@ for you, Kindle! - Unobtrusive footnotes - Metadata in OpenGraph to play nice with social media and search engines - Automatic table of content generation +- Contact form ## Installing and using Ed diff --git a/exampleSite/content/contact.md b/exampleSite/content/contact.md index 56147cb..05c1bb8 100644 --- a/exampleSite/content/contact.md +++ b/exampleSite/content/contact.md @@ -3,6 +3,6 @@ title: Contact description: We'd love to hear from you --- -This is an example of a custom shortcode that you can put right into your content. You will need to add a form action to the the shortcode to make it work. Check out [Formspree](https://formspree.io/) for a simple, free form service. +This is an example of a custom shortcode that you can put right into your content. You will need to add a form action to the the shortcode to make it work. Check out [Formspark](https://formspark.io/) for a simple, free form service. {{< form-contact >}} diff --git a/exampleSite/content/thanks.md b/exampleSite/content/thanks.md new file mode 100644 index 0000000..cf5e6bc --- /dev/null +++ b/exampleSite/content/thanks.md @@ -0,0 +1,9 @@ +--- +title: Thank you +private: true +--- + +Your message will be sent within a short time. +We'll answer as soon as possible. + +[← Back to Home](/). -- cgit v1.2.3