comment_form.html (1285B)
1 <form action="mailto:{{ $.Site.Author.email | replaceRE "@" "%40" }}?subject=RE:{{ $.Page.RelPermalink }}"
2 method="post"
3 name="comment_form">
4 <p><label for="name">{{ i18n "hyperskip-name" }}</label><br/>
5 <input type="text" id="name" name="name" maxlength="20"
6 placeholder="{{ i18n "hyperskip-name-default" }}"/></p>
7 <p><label for="comment">{{ i18n "hyperskip-comment" }}</label><br/>
8 <textarea required
9 id="comment"
10 name="comment"
11 rows="8"
12 minlength="3"
13 placeholder="{{ i18n "hyperskip-requirement"}}"></textarea></p>
14 <p><input type="submit" value="{{ i18n "hyperskip-submit"}}"></p>
15 </form>
16 {{ with $.Site.Params.webmentionEndpoint }}
17 <form action="{{ . }}"
18 method="post" target="_blank">
19 <p><label for="link">{{ i18n "hyperskip-webmention" | markdownify }}</label><br/>
20 <input type="url" id="link" name="source" placeholder="https://foo.bar/baz"/></p>
21 <input type="hidden" name="target" value="{{ $.Page.Permalink }}">
22 <p><input type="submit" value="{{ i18n "hyperskip-webmention-submit" }}"/></p>
23 </form>
24 {{ end }}
25 <script>
26 function reply(hash, name) {
27 document.forms.comment_form.comment.value += "[Re: " + name + "](#" + hash + ")\n";
28 }
29 </script>