mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-12-27 07:43:05 +00:00
12 lines
707 B
HTML
12 lines
707 B
HTML
<!-- Webmentions -->
|
|
<div id="webmentions"></div>
|
|
<form method="post" action="https://webmention.io/brandonrozek.com/webmention">
|
|
<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" }}
|
|
{{ $aliasesCombined := delimit (apply .Aliases "absURL" ".") "|" }}
|
|
<script src="{{ $webmentionjs.Permalink }}" {{ printf "add-urls=%s" $aliasesCombined | safeHTMLAttr }} async></script>
|