mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Move redirect layout into partial
This commit is contained in:
parent
ff405475a2
commit
933b6510ca
@ -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) }}
|
||||
|
@ -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 }}
|
||||
|
11
site/layouts/partials/redirect.html
Normal file
11
site/layouts/partials/redirect.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user