Skip to content

Commit

Permalink
Merge pull request #35 from OpenRailAssociation/404-page
Browse files Browse the repository at this point in the history
Add custom 404 page
  • Loading branch information
mxmehl authored Sep 18, 2024
2 parents 7ade2dd + 69e2ce0 commit e532a50
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
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>

0 comments on commit e532a50

Please sign in to comment.