_pages/contact.html in casjaysdev-jekyll-theme-0.1.6 vs _pages/contact.html in casjaysdev-jekyll-theme-0.1.7
- old
+ new
@@ -6,43 +6,65 @@
form: true
weight: 3
---
<div class="text-center">
- <p>Want to get in touch? Fill out the form below to send me a message and I will get back to you as soon
- as possible!
+ <p>
+ Want to get in touch? Fill out the form below to send me a message
+ and I will get back to you as soon as possible!
</p>
- <form action="{{ site.form.submit_url }}" method="POST" class="contact-form">
- <fieldset>
- <input type=hidden name="print_config" value="subject,Name,message">
- <input type=hidden name="required" value="{{ site.form.fields.required }}">
- <input type=hidden name="recipient" value="{{ site.form.recipient }}">
- <input type=hidden name="subject" value="{{ site.form.subject }}">
- <input type=hidden name="title" value="{{ site.form.title }}">
- <input type=hidden name="env_report" value="{{ site.form.env }}">
- <input type=hidden name="background" value="{{ site.form.theme.background }}">
- <input type=hidden name="bgcolor" value="{{ site.form.theme.bgcolor }}">
- <input type=hidden name="text_color" value="{{ site.form.theme.text_color }}">
- <input type=hidden name="link_color" value="{{ site.form.theme.link_color }}">
- <input type=hidden name="vlink_color" value="{{ site.form.theme.vlink_color }}">
- <input type=hidden name="alink_color" value="{{ site.form.theme.alink_color }}">
- <input type=hidden name="return_link_url" value="{{ site.form.return_link.url }}">
- <input type=hidden name="return_link_title" value="{{ site.form.return_link.title }}">
-
+ <fieldset>
+ {% if site.form.type == "formspree" %}
+ <form action="{{ site.form.formspree.submit_url }}/{{ site.form.formspree.code }}" method="POST">
<label for="stacked-name">Your Name:</label><br />
- <input type="text" name="{{ site.form.fields.name }}" id="stacked-name" placeholder="Your Name" required="" />
+ <input type="text" name="name" id="stacked-name" placeholder="Your Name" required="" />
<span class="pure-form-message">This is a required field.</span><br />
<label for="stacked-email">Your email:</label><br />
- <input type="email" name="{{ site.form.fields.email }}" id="stacked-email" placeholder="Your Email" required="" />
+ <input type="email" name="email" id="stacked-email" placeholder="Your Email" required="" />
<span class="pure-form-message">This is a required field.</span><br />
<label for="stacked-message">Your Message:</label><br />
- <textarea class="stacked-message" name="{{ site.form.fields.message }}" placeholder="What is your message?"
- required=""></textarea>
+ <textarea class="stacked-message" name="message" placeholder="What is your message?" required=""></textarea>
<span class="pure-form-message">This is a required field.</span><br />
+ <!-- your other form fields go here -->
- <button type="submit" class="btn btn-primary btn-lg" id="sendMessageButton">Send Message</button>
- </fieldset>
+ <!-- End Form Spree -->
+
+ {% elsif site.form.type == "formmail" %}
+ <form action="{{ site.form.formmail.submit_url }}" method="POST" class="contact-form">
+ <input type=hidden name="print_config" value="subject,Name,message">
+ <input type=hidden name="required" value="{{ site.form.formmail.fields.required }}">
+ <input type=hidden name="recipient" value="{{ site.form.formmail.recipient }}">
+ <input type=hidden name="subject" value="{{ site.form.formmail.subject }}">
+ <input type=hidden name="title" value="{{ site.form.formmail.title }}">
+ <input type=hidden name="env_report" value="{{ site.form.formmail.env }}">
+ <input type=hidden name="background" value="{{ site.form.formmail.theme.background }}">
+ <input type=hidden name="bgcolor" value="{{ site.form.formmail.theme.bgcolor }}">
+ <input type=hidden name="text_color" value="{{ site.form.formmail.theme.text_color }}">
+ <input type=hidden name="link_color" value="{{ site.form.formmail.theme.link_color }}">
+ <input type=hidden name="vlink_color" value="{{ site.form.formmail.theme.vlink_color }}">
+ <input type=hidden name="alink_color" value="{{ site.form.formmail.theme.alink_color }}">
+ <input type=hidden name="return_link_url" value="{{ site.form.formmail.return_link.url }}">
+ <input type=hidden name="return_link_title" value="{{ site.form.formmail.return_link.title }}">
+
+ <label for="stacked-name">Your Name:</label><br />
+ <input type="text" name="{{ site.form.formmail.fields.name }}" id="stacked-name" placeholder="Your Name"
+ required="" />
+ <span class="pure-form-message">This is a required field.</span><br />
+
+ <label for="stacked-email">Your email:</label><br />
+ <input type="email" name="{{ site.form.formmail.fields.email }}" id="stacked-email" placeholder="Your Email"
+ required="" />
+ <span class="pure-form-message">This is a required field.</span><br />
+
+ <label for="stacked-message">Your Message:</label><br />
+ <textarea class="stacked-message" name="{{ site.form.formmail.fields.message }}"
+ placeholder="What is your message?" required=""></textarea>
+ <span class="pure-form-message">This is a required field.</span><br />
+ {% endif %}
+
+ <button type="submit" class="btn btn-primary btn-lg" id="sendMessageButton">Send Message</button>
+ </fieldset>
</form>
</div>