2022-05-08 22:02:35 +00:00
|
|
|
<!-- Webmentions -->
|
|
|
|
<div id="webmentions"></div>
|
2022-11-26 04:22:28 +00:00
|
|
|
{{ $siteHost := (urls.Parse .Site.BaseURL).Host -}}
|
|
|
|
<form method="post" action="https://webmention.io/{{ $siteHost }}/webmention">
|
2023-12-28 17:44:55 +00:00
|
|
|
<p style="display: inline-block;">Published a response to this? <label for="webmention-source">Let me know the URL</label>:</p>
|
2022-05-08 22:02:35 +00:00
|
|
|
<input type="url" name="source" id="webmention-source">
|
|
|
|
<input type="hidden" name="target" value="{{ .Permalink }}">
|
2023-12-28 17:44:55 +00:00
|
|
|
<button type="submit">Submit</button>
|
2022-05-08 22:02:35 +00:00
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
{{ $webmentionjs := resources.Get "js/webmention.min.js" }}
|
2022-05-20 20:56:06 +00:00
|
|
|
{{ $aliasesCombined := delimit (apply .Aliases "absURL" ".") "|" }}
|
|
|
|
<script src="{{ $webmentionjs.Permalink }}" {{ printf "add-urls=%s" $aliasesCombined | safeHTMLAttr }} async></script>
|