Added webmentions to old links

This commit is contained in:
Brandon Rozek 2022-05-01 02:38:32 -04:00
parent 2834933a82
commit 6d329dc122

21
layouts/alias.html Normal file
View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html{{ with site.LanguageCode | default site.Language.Lang }} lang="{{ . }}"{{ end }}>
<head>
<title>{{ .Permalink }}</title>
<link rel="canonical" href="{{ .Permalink }}">
<meta name="robots" content="noindex">
<meta charset="utf-8">
<!-- Webmentions -->
<link rel="webmention" href="https://webmention.io/brandonrozek.com/webmention" />
<link rel="pingback" href="https://webmention.io/brandonrozek.com/xmlrpc" />
<meta http-equiv="refresh" content="0; url={{ .Permalink }}">
</head>
<body>
<p>Likely due to typos or site reorganizations, "{{ .Title }}" has moved to a new URL.</p>
<p>
If your browser does not immediately send you to the new location,
you can visit <a href="{{ .Permalink }} ">{{ .Permalink }}</a> yourself.
</body>
</html>