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

@ -14,6 +14,7 @@
<meta name="author" content="{{ .Site.Params.Author }}" />
<meta name="robots" content="index,follow" />
<link rel="manifest" href="/manifest.json" />
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/"/>
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}{{ .Site.Params.favicon }}">
<!-- Identities -->
@ -22,8 +23,9 @@
{{ end -}}
<!-- Webmentions -->
<link rel="webmention" href="https://webmention.io/brandonrozek.com/webmention" />
<link rel="pingback" href="https://webmention.io/brandonrozek.com/xmlrpc" />
{{ $siteHost := (urls.Parse .Site.BaseURL).Host -}}
<link rel="webmention" href="https://webmention.io/{{ $siteHost }}/webmention" />
<link rel="pingback" href="https://webmention.io/{{ $siteHost }}/xmlrpc" />
<!-- RSS / Alternative Links -->
{{- if .IsHome -}}