From 0bb41a8b7854822e71e76cad76c37f6765e05b12 Mon Sep 17 00:00:00 2001 From: Ryan Qian Date: Wed, 6 Dec 2023 14:12:23 +0800 Subject: [PATCH] add more info to 404 page (#49) --- layouts/404.html | 19 +++++++++++++++++++ layouts/partials/site-navigation.html | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 layouts/404.html diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..8c58e0a --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,19 @@ +{{ define "header" }}{{ partial "page-header.html" . }}{{ end }} +{{ define "main" }} +
+

+ 404, Page not found +

+

+ 您所访问的页面不存在,建议可以访问赛题列表, + 或回到主页。 +

+

+ The page you are looking for is not available, you can visit + the list of challenges + or return to the + HOME + page. +

+
+{{ end }} diff --git a/layouts/partials/site-navigation.html b/layouts/partials/site-navigation.html index ccce26c..82763e6 100644 --- a/layouts/partials/site-navigation.html +++ b/layouts/partials/site-navigation.html @@ -5,7 +5,7 @@ {{ $.Site.Title }} {{ else }} - {{ if (or .IsPage .IsSection) }} + {{ if not .IsHome }} {{ .Site.Title }}