Commit d0eee247 authored by Jamie Tanna's avatar Jamie Tanna

Allow manual Webmentions via HTML forms

As part of, it'd be good to have a manual form to enter a
response to, as well as the automated discovery that clients are welcome
to use.

We additionally need to style our `form` as per the max-width aesthetic
as it renders poorly otherwise.
parent 5e8981e2
......@@ -24,7 +24,8 @@ main {,,
div.catalogue {
form#manual-webmention {
margin: 0 auto 1rem;
@extend %max-width;
......@@ -38,6 +38,16 @@
<h2>Interactions with this post</h2>
<p>This post has had {{ len $webmentions.children }} <a href="">WebMention</a> interactions, as of {{ now.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}.</p>
<div class="manual-webmention">
<p>Have you written a <a href="">response</a> to this post? Let me know the URL:</p>
<form id="manual-webmention" action="{{ .Site.Params.WebMentionDomain }}/webmention" method="post">
<input type="url" name="source" value="" />
<input type="hidden" name="target" value="{{ $url }}" />
<input type="submit" name="submit" value="Send Webmention" />
{{ partial "webmention/likes.html" $likes }}
{{ partial "webmention/mentions.html" $mentions }}
{{ partial "webmention/reposts.html" $reposts }}
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