diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-27 13:58:40 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-27 13:58:40 +0200 |
| commit | 064f2c1882ea4c788fe7657e8fb37381771940f8 (patch) | |
| tree | 6310c7aec1c6368cfce85dce65313397e25ca5d7 /exampleSite | |
| parent | 1cb961252ed3208ea91b4f760573a51224dde5ac (diff) | |
| download | gohugo-theme-ed-064f2c1882ea4c788fe7657e8fb37381771940f8.tar.gz | |
Setup contact form
Diffstat (limited to 'exampleSite')
| -rw-r--r-- | exampleSite/config.toml | 11 | ||||
| -rw-r--r-- | exampleSite/content/_index.md | 1 | ||||
| -rw-r--r-- | exampleSite/content/contact.md | 8 |
3 files changed, 19 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c151c16..9224727 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -149,6 +149,12 @@ disableKinds = ['RSS'] # RSS/Atom feed size feedSize = 25 + [params.contact] + # Formspree URL, used in contacts form + formAction = 'https://formspree.io/f/example' + # Contact form email subject + emailSubject = 'Contact form submission' + [params.assets] # Site icons, relative to ./static favicon = '' # favicon.ico for legacy browsers @@ -188,6 +194,11 @@ disableKinds = ['RSS'] url = '/documentation/' weight = 4 [[menu.main]] + identifier = 'contact' + name = 'Contact' + url = '/contact/' + weight = 5 + [[menu.main]] identifier = 'github' name = 'GitHub Project' url = 'https://github.com/sergeyklay/gohugo-theme-ed/' diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index ccd4a80..8b5e280 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -1,6 +1,5 @@ --- title: "Ed." - --- # hi. diff --git a/exampleSite/content/contact.md b/exampleSite/content/contact.md new file mode 100644 index 0000000..56147cb --- /dev/null +++ b/exampleSite/content/contact.md @@ -0,0 +1,8 @@ +--- +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. + +{{< form-contact >}} |
