Merge pull request #23753 from sftim/20200908_tidy_404_page
Tidy 404 Not Found error page
This commit is contained in:
commit
9ec9ebb67c
|
|
@ -53,6 +53,14 @@ section {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.td-404 main .error-details {
|
||||||
|
max-width: 1100px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-top: 4em;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* HEADER */
|
/* HEADER */
|
||||||
|
|
||||||
.td-navbar {
|
.td-navbar {
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,9 @@ other = "Latest version"
|
||||||
[docs_version_other_heading]
|
[docs_version_other_heading]
|
||||||
other = "Older versions"
|
other = "Older versions"
|
||||||
|
|
||||||
|
[error_404_were_you_looking_for]
|
||||||
|
other = "Were you looking for:"
|
||||||
|
|
||||||
[examples_heading]
|
[examples_heading]
|
||||||
other = "Examples"
|
other = "Examples"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,14 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ partial "handle-version-switch-404.html" . }}
|
{{ partial "handle-version-switch-404.html" . }}
|
||||||
<div class="container-404">
|
<section id="error-404" class="error-details">
|
||||||
<h4>
|
<p>
|
||||||
Perhaps you were looking for:
|
{{ T "error_404_were_you_looking_for" }}
|
||||||
</h4>
|
</p>
|
||||||
|
<ul id="error-sections">
|
||||||
<br />
|
{{ $sections := slice "docs" "blog" "training" "partners" "community" "case-studies" }}
|
||||||
<br />
|
{{ range $sections }}
|
||||||
|
{{ with site.GetPage "section" . }}<li><a href="{{ .RelPermalink }}" data-proofer-ignore>{{ .Title }}</a></li>{{ end }}
|
||||||
<ul>
|
{{ end }}
|
||||||
<li>
|
|
||||||
<a href="/docs">
|
|
||||||
The Kubernetes documentation
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="/blog">
|
|
||||||
The Kubernetes blog
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="/community">
|
|
||||||
The Kubernetes community
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue