Skip to content

Commit

Permalink
[HDDS-7685][website] Custom 404 Page (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: Yi-Sheng Lien <[email protected]>
  • Loading branch information
cchung100m and cxorm authored Sep 25, 2023
1 parent f9e00ea commit affd0c8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ baseUrl = "/"
# Configure the English version of the website.
[languages.en]
languageCode = "en-us"

[[redirects]]
from = "/*"
to = "/404/"
status = 404
19 changes: 19 additions & 0 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. See accompanying LICENSE file.
-->
{{ partial "header.html" . }}
<div class="container">
<p>Page not found</p>
<p><a href="/">Go to Home Page</a></p>
</div>
{{ partial "footer.html" . }}

0 comments on commit affd0c8

Please sign in to comment.