Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (48 sloc) 2.87 KB
{% unless page.comments_locked == true or site.comments_locked == true %}
<!-- Start comment form -->
<div id="respond" class="comment__form">
<h2 class="title">Leave a comment <small><a rel="nofollow" id="cancel-comment-reply-link" href="{{ page.url | relative_url }}#respond" style="display:none;">Cancel reply</a></small></h2>
<form id="comment-form" class="js-form" method="post" action="https://comments.gabescode.com/v2/entry/gabeluci/gabeluci.github.io/master/comments">
<div class="form__group">
<label for="comment-form-name">Name
<input type="text" id="comment-form-name" name="fields[name]" required spellcheck="false" placeholder="Your name">
</label>
<label for="comment-form-email">E-mail
<input type="email" id="comment-form-email" name="fields[email]" required spellcheck="false" placeholder="email@domain.com">
</label>
<label for="comment-form-url">Website (optional)
<input type="url" id="comment-form-url" name="fields[url]" placeholder="https://domain.com">
</label>
</div>
<div class="notice">
Your email address is used to display your <a href="https://en.gravatar.com">Gravatar</a>, if applicable,
and subscribe you to replies using the <a href="https://www.mailgun.com">Mailgun</a> web service,
which you are free to unsubscribe from when you get any emails.
Your email address will not be displayed publicly or shared with anyone else.
</div>
<div class="form__group">
<label for="comment-form-message">Comment
<textarea type="text" rows="6" id="comment-form-message" name="fields[message]" required spellcheck="true" placeholder="Your message"></textarea>
</label>
</div>
<input type="hidden" name="options[origin]" value="{{ page.url | absolute_url }}#comments">
<input type="hidden" id="comment-replying-to" name="options[parent]" value>
<input type="hidden" id="comment-post-id" name="options[slug]" value="{{ page.slug }}">
<input type="hidden" name="options[reCaptcha][siteKey]" value="{{ site.reCaptcha.siteKey }}">
<input type="hidden" name="options[reCaptcha][secret]" value="{{ site.reCaptcha.secret }}">
<input type="hidden" name="options[subscribe]" value="email">
<div class="g-recaptcha form__group" data-sitekey="{{ site.reCaptcha.siteKey }}"></div>
<button type="submit" id="comment-form-submit">Send comment</button>
</form>
<div class="hidden js-notice notice">
<p class="js-notice-text"></p>
</div>
</div>
<!-- End comment form -->
<script async src="https://www.google.com/recaptcha/api.js"></script>
{% else %}
<div class="notice">
<h4>Comments are closed</h4>
<!--<p>If you have a question concerning the content of this page, please feel free to <a href="/contact/">contact me</a>.</p>-->
</div>
{% endunless %}