summaryrefslogtreecommitdiffstats
path: root/exampleSite
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-27 15:05:47 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-27 15:05:47 +0200
commit7852a69245bed2bd076930bc706a8a3cc4ed797a (patch)
treeabc999a4fb8958f7b4093e5b0a69cfab1ff15c65 /exampleSite
parent064f2c1882ea4c788fe7657e8fb37381771940f8 (diff)
downloadgohugo-theme-ed-7852a69245bed2bd076930bc706a8a3cc4ed797a.tar.gz
Migrate to formspark.io
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.toml4
-rw-r--r--exampleSite/content/about.md1
-rw-r--r--exampleSite/content/contact.md2
-rw-r--r--exampleSite/content/thanks.md9
4 files changed, 14 insertions, 2 deletions
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.
+
+[&larr; Back to Home](/).