mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-29 11:32:11 +00:00
4d3b628fb3
- We don't want autocomplete on the webmention form, since users should not be entering a link multiple times. - Not all browsers support the "required" HTML5 attribute, so add the "aria-required" HTML attribute too.
15 lines
964 B
HTML
15 lines
964 B
HTML
<fieldset>
|
|
<legend>Publish a response on your own website and share the link here to send me a webmention! Include a link to this page's canonical location for it to be accepted.</legend>
|
|
<form
|
|
itemprop="potentialAction" itemscope="" itemtype="https://schema.org/CommentAction"
|
|
action="https://seirdy.one/webmentions/receive" method="post">
|
|
<meta itemprop="actionStatus" content="PotentialActionStatus" />
|
|
{{ $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" -}}
|
|
<input type="hidden" name="target" value="{{ .Site.Params.canonicalBaseURL }}{{ $canonicalRelPermalink }}" />
|
|
<label for="menchie">URL of page linking here</label>
|
|
<div><!--We need the extra divs to serve as pseudo-table-cells.-->
|
|
<input id="menchie" type="url" autocomplete="off" required="" aria-required="true" name="source" /><!--disable autocomplete bc it's a unique URL.-->
|
|
<div><input type="submit" value="submit" /></div>
|
|
</div>
|
|
</form>
|
|
</fieldset>
|