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

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalim B <salim@posteo.de>2021-04-08 10:47:17 +0300
committerGitHub <noreply@github.com>2021-04-08 10:47:17 +0300
commitf5f129ddc212a9f4ffad6c12e7142bc292d865c3 (patch)
tree234b0d9a5da2c071c3b0c6552e323d462a393bc1 /layouts
parent0da0cd586b31910adacab46fe1f12dcec1ee6e72 (diff)
Improve e-mail field on contact page (#290)
Setting - [`type="email"`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email) allows clients to automatically validate the input to ensure that it's either empty or a properly-formatted e-mail address - [`autocomplete="email"`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) allows clients to properly autocomplete the field (e-mail addresses only)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/contact.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html
index 5186e2e..82304f6 100644
--- a/layouts/partials/contact.html
+++ b/layouts/partials/contact.html
@@ -26,7 +26,7 @@
<div class="col-sm-6">
<div class="form-group">
<label for="email">{{ i18n "contactMail" }}</label>
- <input type="text" class="form-control" name="email" id="email" required>
+ <input type="email" autocomplete="email" class="form-control" name="email" id="email" required>
</div>
</div>
<div class="col-sm-12">