Permalink
Browse files

Added info to docs

  • Loading branch information...
jpasholk
jpasholk committed Oct 15, 2018
1 parent 33c792d commit c1cda80dac5f51e057b9d4b0cc28d5ba5558cedd
Showing with 10 additions and 8 deletions.
  1. +5 −5 README.md
  2. +3 −3 _includes/contact-form.html
  3. +2 −0 _posts/2018-10-13-contact-form-example.markdown
View
@@ -34,19 +34,19 @@ Built with [UiKit](https://getuikit.com/) by [YooTheme](https://yootheme.com/),
* Responsive layout.
* Simple landing/ home page.
* Contact forms powered by [Formspree.io](https://formspree.io)!
* Paginated blog page with follow links on last page.
* Tag archive page that automatically populates with tags from posts. ie: [tag1, tag2, tag3, etc]
* Tag archive page that automatically populates with tags from posts. ie: [tag1, tag2, tag3, etc].
* Optimized for search engines with support for Twitter Cards and Open Graph data
* Optimized for search engines with support for Twitter Cards and Open Graph data.
* Comments powered by Disqus, with Staticman integration planned.
* Google Analytics support
* Google Analytics support.
* Large header image support with `bigimg`.
* Large header image support.
## Installation
@@ -12,7 +12,7 @@
{% assign thanks_url = "/thanks/" %}
{% endif %}
<form class="form form--{{ name_id }}" method="post" name="{{ name }}" action="{{ thanks_url }}"
<form class="form form--{{ name_id }}" method="post" name="{{ name }}" action="{{ thanks_url }}"
{% if include.netlify_form %}
netlify-honeypot="bot-field"
netlify
@@ -34,14 +34,14 @@
<label class="label" for="message--{{ name_id }}">Message:<textarea class="uk-textarea" id="message--{{ name_id }}" name="message" placeholder="Your message..." required="required"></textarea></label>
</div>
<input class="uk-button uk-button-primary" type="submit" value="Send message" />
<input class="uk-button uk-button-primary" type="submit" value="Send message"/>
{% if include.netlify_form %}
<label style="display:none">Don’t fill this out if you’re human: <input name="bot-field" /></label>
{% else %}
<input type="text" name="_gotcha" style="display:none">
<input type="hidden" name="_subject" value="{{ site.title }} submission from {{ name }}">
<input type="hidden" name="_next" value="{{ thanks_url }}" />
<input type="hidden" name="_next" value="{{ thanks_url }}"/>
{% endif %}
</fieldset>
</form>
@@ -11,4 +11,6 @@ Set `netlify_form=true` when using the include to use Netlify Forms, otherwise t
Use the `email` option in the `/_config.yml` to change to the desired email.
If you'd like to use a different thank you page, set it in ```_includes/contact-form.html```. Just change the ```thanks_url="/some-other-page/"``` tag to some other value.
{% include contact-form.html %}

0 comments on commit c1cda80

Please sign in to comment.