2022-05-08 18:02:35 -04:00
|
|
|
<!-- Webmentions -->
|
|
|
|
<div id="webmentions"></div>
|
2022-11-25 23:22:28 -05:00
|
|
|
{{ $siteHost := (urls.Parse .Site.BaseURL).Host -}}
|
|
|
|
<form method="post" action="https://webmention.io/{{ $siteHost }}/webmention">
|
2022-05-08 18:02:35 -04:00
|
|
|
<p>Have you published a response to this? <label for="webmention-source">Let me know the <abbr title="Uniform Resource Locator">URL</abbr></label>:</p>
|
|
|
|
<input type="url" name="source" id="webmention-source">
|
|
|
|
<input type="hidden" name="target" value="{{ .Permalink }}">
|
|
|
|
<button type="submit">Ping!</button>
|
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
{{ $webmentionjs := resources.Get "js/webmention.min.js" }}
|
2022-05-20 16:56:06 -04:00
|
|
|
{{ $aliasesCombined := delimit (apply .Aliases "absURL" ".") "|" }}
|
|
|
|
<script src="{{ $webmentionjs.Permalink }}" {{ printf "add-urls=%s" $aliasesCombined | safeHTMLAttr }} async></script>
|