Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uicardiodev/hugo-uilite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArvind <heyarviind@gmail.com>2021-06-08 19:11:42 +0300
committerGitHub <noreply@github.com>2021-06-08 19:11:42 +0300
commit0b625104854cb06afaf1f1260eabedb07c0d4706 (patch)
tree8e6cd95b418cf300c939939cd5b68f2e84183678
parent966770a2171eec418fecd356d781f50f82f7bede (diff)
parent860fc155148169b8a82fc8a13c340d459ed4b18c (diff)
Merge pull request #18 from felipeamarante/formspree-fixHEADmaster
Fixing formspree integration and adding steps to readme.md and exampleSite
-rw-r--r--README.md8
-rw-r--r--exampleSite/data/config.json5
-rw-r--r--layouts/partials/contact.html2
3 files changed, 11 insertions, 4 deletions
diff --git a/README.md b/README.md
index d8d6032..125127d 100644
--- a/README.md
+++ b/README.md
@@ -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>