mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-30 15:22:09 +00:00
19d5fe2b00
Use partialCached to avoid any perf penalty. TODO: limit the scope I pass to them. I noticed a teeny tiny perf improvement after doing this, probably because now some giant data structures only need to be generated once.
15 lines
945 B
HTML
15 lines
945 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="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="on" required="" name="source" /><!--enable autocomplete if the same URL mentions multiple pages.-->
|
|
<div><input type="submit" value="submit" /></div>
|
|
</div>
|
|
</form>
|
|
</fieldset>
|