diff options
author | Arvind <heyarviind@gmail.com> | 2021-06-08 19:11:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 19:11:42 +0300 |
commit | 0b625104854cb06afaf1f1260eabedb07c0d4706 (patch) | |
tree | 8e6cd95b418cf300c939939cd5b68f2e84183678 | |
parent | 966770a2171eec418fecd356d781f50f82f7bede (diff) | |
parent | 860fc155148169b8a82fc8a13c340d459ed4b18c (diff) |
Fixing formspree integration and adding steps to readme.md and exampleSite
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | exampleSite/data/config.json | 5 | ||||
-rw-r--r-- | layouts/partials/contact.html | 2 |
3 files changed, 11 insertions, 4 deletions
@@ -23,4 +23,10 @@ Hugo UILite portfolio theme is designed especially for designers and developers ### Useful Links -[Free Demo](https://demo.uicard.io/hugo-uilite-free/) | [Pro Demo](https://demo.uicard.io/hugo-uilite-portfolio-demo/) | [More Info](https://uicard.io/products/hugo-uilite-pro?utm_source=github)
\ No newline at end of file +[Free Demo](https://demo.uicard.io/hugo-uilite-free/) | [Pro Demo](https://demo.uicard.io/hugo-uilite-portfolio-demo/) | [More Info](https://uicard.io/products/hugo-uilite-pro?utm_source=github) + +### Contact via Formspree + +- [Register](https://formspree.io/) +- [Create a Project and a Form](https://help.formspree.io/hc/en-us/articles/360053239754-Getting-started-with-projects) +- Add your **form endpoint** to `data/config.json`
\ No newline at end of file diff --git a/exampleSite/data/config.json b/exampleSite/data/config.json index 5e30375..6284b53 100644 --- a/exampleSite/data/config.json +++ b/exampleSite/data/config.json @@ -1,4 +1,5 @@ { "author" : "Arvind Singh", - "email" : "youremailhere@gmail.com" -}
\ No newline at end of file + "email" : "youremailhere@gmail.com", + "formspree" : "https://your-form-endpoint-goes-here" +} diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html index 97cb4ed..4fa30e6 100644 --- a/layouts/partials/contact.html +++ b/layouts/partials/contact.html @@ -8,7 +8,7 @@ {{ $config.message }} </div> - <form action="https://formspree.io/{{ $config.email }}" method="post"> + <form action="{{ $config.formspree }}" method="post"> <div class="form-row"> <div class="col-12 col-xl-6 col-lg-6 col-md-6"> <label>Name</label> |