1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00
seirdy.one/layouts/partials/webmentions/webmention-form.html
2023-12-07 23:53:25 -08:00

15 lines
944 B
HTML

<fieldset>
<legend>Publish a response on your own website, and link back to this page's canonical location. Then share your link here to turn it into a Webmention.</legend>
<form
itemprop="potentialAction" itemscope="" itemtype="https://schema.org/CommentAction"
action="{{ .Site.Params.webmentionEndpoint }}" 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="on" required="" name="source" /><!--enable autocomplete if the same URL mentions multiple pages.-->
<div><input type="submit" value="submit" /></div>
</div>
</form>
</fieldset>