Commit af472187 authored by Kaushal Modi's avatar Kaushal Modi

Add Send Webmention button

parent 53a0aace
......@@ -60,6 +60,7 @@
{{/* printf "%#v" $.Site */}}
{{/* printf "%#v" $.Site.Params */}}
{{ partial "webmention_send.html" . }}
{{ partial "webmention_rcv.html" . }}
{{ with .Site.Params.remarkbox }}
<div class="comments clear-float">
......
<!-- Send webmention -->
<!-- https://github.com/dg01d/reproach/blob/master/layouts/partials/mention.html -->
{{ $permalink := .Permalink }}
{{ with .Site.Params.webmention }}
<div class="send-mention">
Have you written a <a href="https://indieweb.org/responses">response</a> to
this? Let me know the <abbr title="Uniform Resource Locator">URL</abbr>
{{ printf "<form action=\"%s%s/webmention\" method=\"post\">" .endpoint .account | safeHTML }}
<input name="source" placeholder="https://example.com/my-reply-post/" type="url">
{{ printf "<input name=\"target\" value=\"%s\" type=\"hidden\">" ($permalink | replaceRE "^http://localhost:[0-9]+/" .domain) | safeHTML }}
<input value="Send Webmention" type="submit">
{{ printf "</form>" | safeHTML }}
</div>
{{ end }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment