Skip to content

Commit e56a7a2

Browse files
committed
Add alias page to include OG data, so rendering of old URLs at LinkedIn and Slack is still fine.
1 parent 17c58f0 commit e56a7a2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

layouts/alias.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ site.Language.LanguageCode }}">
3+
<head>
4+
<title>Redirect {{ .Permalink }}</title>
5+
<link rel="canonical" href="{{ .Permalink }}">
6+
<meta name="robots" content="noindex">
7+
<meta charset="utf-8">
8+
{{ if .Site.Params.favicon }}
9+
<link rel="icon" type="image/x-icon" href='{{ .Site.Params.favicon }}'>
10+
{{ else }}
11+
<link rel="icon" type="image/x-icon" href='{{ "images/favicon.ico" | absURL }}'>
12+
{{ end }}
13+
<meta name="theme-color" content="#1e2327">
14+
15+
<meta name="description"
16+
content="{{ if .IsHome }}{{ .Site.Params.tagline }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
17+
<meta name="keywords"
18+
content='{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}' />
19+
<meta name="robots" content="index,follow" />
20+
21+
<!-- Twitter Card -->
22+
{{ template "_internal/twitter_cards.html" . }}
23+
24+
<!-- OG data -->
25+
{{ template "_internal/opengraph.html" . }}
26+
27+
<!-- RSS -->
28+
{{ with .OutputFormats.Get "RSS" }}
29+
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
30+
{{ end }}
31+
32+
<!-- JSON Feed -->
33+
{{ with .OutputFormats.Get "json" }}
34+
<link href="{{ .RelPermalink }}" rel="alternate" type="application/json" title="{{ $.Site.Title }}" />
35+
{{ end }}
36+
37+
{{ partial "faro-analytics/assets/js" . }}
38+
<meta http-equiv="refresh" content="0; url={{ .Permalink }}">
39+
</head>
40+
</html>

0 commit comments

Comments
 (0)