diff --git a/i18n/en.toml b/i18n/en.toml index f9cdda707ce58792713a8b734565b72520bcbe6e..8534a848d20d3f6412edfe5d76881f00f5664cb5 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -44,4 +44,13 @@ other = "Pre-blog preparation" other = "Post a Blog" [comment_placeholder] -other = "Please leave a message..." \ No newline at end of file +other = "Please leave a message..." + +[404_title] +other = "The page is not found." + +[404_homepage] +other = "Back to Home" + +[404_homepage_url] +other = "https://test.opengauss.org/en/" \ No newline at end of file diff --git a/i18n/zh.toml b/i18n/zh.toml index 75fdbbd80c84f664166c8373f2868d3012e714b2..83e4b645ef5da4a953e6c0797bbff6a5dd5ce902 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -44,4 +44,13 @@ other = "博客前准备" other = "写博客" [comment_placeholder] -other = "说点什么吧..." \ No newline at end of file +other = "说点什么吧..." + +[404_title] +other = "没有找到页面" + +[404_homepage] +other = "返回首页" + +[404_homepage_url] +other = "https://test.opengauss.org/zh/" \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/404.html b/themes/hugo-blog-jeffprod/layouts/404.html index d54840023a44037ef4c68becc5ce32686d8b8289..655906d5dec8916287fdc57b01f1f691969d1f86 100644 --- a/themes/hugo-blog-jeffprod/layouts/404.html +++ b/themes/hugo-blog-jeffprod/layouts/404.html @@ -1,9 +1,24 @@ -{{ define "main" }} +{{ partial "header.html" . }} -