Skip to content

Commit

Permalink
Merge pull request #113 from edrlab/contents
Browse files Browse the repository at this point in the history
404 at root
  • Loading branch information
gautierchomel authored Sep 30, 2024
2 parents a6f707f + 69e6e00 commit ff2204c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
16 changes: 16 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>404 Not Found - Thorium Reader</title>
</head>
<body>

<h1>404 Not Found</h1>
<p>The page you requested cannot be found.</p>
<p>
<a href="https://thorium.edrlab.org/">
Return to the home page
</a>
</p>
</body>
8 changes: 0 additions & 8 deletions layouts/404 copy.html

This file was deleted.

19 changes: 9 additions & 10 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{{ define "main"}}
<main id="main">
<div>
<h1 id="title">Not found</h1>
<p>Oops! This page doesn't exist. Try going back to our <a href="{{ "/" | relURL }}">home page</a>.</p>

<p>You can learn how to make a 404 page like this in <a href="https://gohugo.io/templates/404/">Custom 404 Pages</a>.</p>
</div>
</main>
{{ end }}
{{ define "main" }}
<h1>404 Not Found</h1>
<p>The page you requested cannot be found.</p>
<p>
<a href="{{ .Site.Home.RelPermalink }}">
Return to the home page
</a>
</p>
{{ end }}

0 comments on commit ff2204c

Please sign in to comment.