Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom 404 page #35

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
extended: true

- name: Build
run: hugo --minify
run: hugo

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
Expand Down
25 changes: 25 additions & 0 deletions themes/openrail/layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE HTML>
<html>

{{ partial "head" . }}

<body class="is-preload">

<!-- Wrapper -->
<div id="wrapper" class="divided">
{{ partial "nav" site.Data.nav }}
<section class="wrapper style1 align-left">
<div class="inner medium">
<h2>Page Not Found</h2>
<p>The page you requested cannot be found. This should not have happened.</p>
<p>Please feel free to contact us about broken links.</p>
</div>
</section>
{{ partial "footer" site.Data.footer }}
</div>

{{ partial "scripts" . }}

</body>

</html>
Loading