Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
933b6510
Commit
933b6510
authored
4 years ago
by
Tiger Oakes
Committed by
XhmikosR
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Move redirect layout into partial
parent
ff405475
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
site/layouts/_default/redirect.html
+1
-11
site/layouts/_default/redirect.html
site/layouts/alias.html
+1
-11
site/layouts/alias.html
site/layouts/partials/redirect.html
+11
-0
site/layouts/partials/redirect.html
with
13 additions
and
22 deletions
+13
-22
site/layouts/_default/redirect.html
+
1
-
11
View file @
933b6510
<!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) }}
This diff is collapsed.
Click to expand it.
site/layouts/alias.html
+
1
-
11
View file @
933b6510
<!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 }}
This diff is collapsed.
Click to expand it.
site/layouts/partials/redirect.html
0 → 100644
+
11
-
0
View file @
933b6510
<!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>
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets