mirror of https://github.com/grpc/grpc.io.git
grpc-docsy: move custom 404 page to submodule (#670)
This is a first contribution to #669
This commit is contained in:
parent
4550c95728
commit
11a258e215
|
|
@ -1,45 +0,0 @@
|
|||
{{/* This file is in place as an override to Docsy */}}
|
||||
|
||||
{{ define "title" -}}
|
||||
404 Page not found – {{ site.Title -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" -}}
|
||||
{{ $newIssuePath := "issues/new?title=Unexpected%20page-not-found%20error&body=URL%3A%20%0AExpected%20page%3A%20" -}}
|
||||
{{ $newIssueUrl := printf "%s/%s" site.Params.repo $newIssuePath -}}
|
||||
|
||||
<section class="row td-cover-block td-cover-block--height-sm js-td-cover td-overlay td-overlay--dark -bg-primary">
|
||||
<div class="container td-overlay__inner">
|
||||
<div class="text-center">
|
||||
<h1 class="display-1 text-white pb-4">
|
||||
Page not found
|
||||
</h1>
|
||||
<h2 class="text-white font-weight-medium">
|
||||
404
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<div class="container text-center">
|
||||
<div>
|
||||
<p>
|
||||
The page that you requested doesn't exist.
|
||||
</p>
|
||||
<p>
|
||||
Check the URL's spelling.
|
||||
</p>
|
||||
<p>
|
||||
If you think that the page should exist,
|
||||
<a href="{{ $newIssueUrl }}" target="_blank" rel="noopener">create an issue.</a>
|
||||
</p>
|
||||
<p>
|
||||
<a class="btn btn-lg btn-primary" href="/">
|
||||
Homepage
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit f7fec423e5f91275d5ad2aa4bb34086e2fd94d51
|
||||
Subproject commit 0071e1ac112641e09776ec870ac5d10c975b5a7f
|
||||
Loading…
Reference in New Issue