Skip to content

Commit

Permalink
add more info to 404 page (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
bekcpear authored Dec 6, 2023
1 parent a215515 commit 0bb41a8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
{{ define "main" }}
<article class="center cf pv5 ph3 lh-copy measure-wide-l">
<h1>
404, Page not found
</h1>
<p>
您所访问的页面不存在,建议可以访问<a href='{{ relLangURL "challenges/"}}'>赛题列表</a>
或回到<a href='{{ relLangURL ""}}'>主页</a>
</p>
<p>
The page you are looking for is not available, you can visit
<a href='{{ relLangURL "challenges/"}}'>the list of challenges</a>
or return to the
<a href='{{ relLangURL ""}}'>HOME</a>
page.
</p>
</article>
{{ end }}
2 changes: 1 addition & 1 deletion layouts/partials/site-navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<img src="{{ relURL . }}" class="w100 mw5-ns" alt="{{ $.Site.Title }}" />
</a>
{{ else }}
{{ if (or .IsPage .IsSection) }}
{{ if not .IsHome }}
<a href="{{ .Site.Home.RelPermalink }}" class="f3 fw3 no-underline dib">
{{ .Site.Title }}
</a>
Expand Down

0 comments on commit 0bb41a8

Please sign in to comment.