1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Move redirect layout into partial

This commit is contained in:
Tiger Oakes 2020-09-05 22:29:59 -07:00 committed by XhmikosR
parent ff405475a2
commit 933b6510ca
3 changed files with 13 additions and 22 deletions

View file

@ -1,11 +1 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Page.Params.redirect | absURL }}</title>
<link rel="canonical" href="{{ .Page.Params.redirect | absURL }}">
<meta name="robots" content="noindex">
<meta http-equiv="refresh" content="0; url={{ .Page.Params.redirect | absURL }}">
</head>
</html>
{{ partial "redirect" (.Page.Params.redirect | absURL) }}

View file

@ -1,11 +1 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Permalink }}</title>
<link rel="canonical" href="{{ .Permalink }}">
<meta name="robots" content="noindex">
<meta http-equiv="refresh" content="0; url={{ .Permalink }}">
</head>
</html>
{{ partial "redirect" .Permalink }}

View file

@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ . }}</title>
<link rel="canonical" href="{{ . }}">
<meta name="robots" content="noindex">
<meta http-equiv="refresh" content="0; url={{ . }}">
</head>
</html>