Made webmention portion of code more generic

This commit is contained in:
Brandon Rozek 2022-11-25 23:22:28 -05:00
parent 4d5f0f30cb
commit a574a122a4
4 changed files with 7 additions and 9 deletions

View file

@ -1,6 +1,7 @@
<!-- Webmentions -->
<div id="webmentions"></div>
<form method="post" action="https://webmention.io/brandonrozek.com/webmention">
{{ $siteHost := (urls.Parse .Site.BaseURL).Host -}}
<form method="post" action="https://webmention.io/{{ $siteHost }}/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 }}">