From e0e88e963a3d2c96029e1e3dca3397d38db78cab Mon Sep 17 00:00:00 2001 From: sunfei Date: Fri, 25 Apr 2025 12:47:31 +0800 Subject: [PATCH] fix 404 error --- en/theme/{index.hbs => index1.hbs} | 0 zh-CN/book.toml | 2 +- zh-CN/theme/{index.hbs => index1.hbs} | 183 ++++++++++++++------------ 3 files changed, 102 insertions(+), 83 deletions(-) rename en/theme/{index.hbs => index1.hbs} (100%) rename zh-CN/theme/{index.hbs => index1.hbs} (69%) diff --git a/en/theme/index.hbs b/en/theme/index1.hbs similarity index 100% rename from en/theme/index.hbs rename to en/theme/index1.hbs diff --git a/zh-CN/book.toml b/zh-CN/book.toml index 6ec0e15..673fec4 100644 --- a/zh-CN/book.toml +++ b/zh-CN/book.toml @@ -19,4 +19,4 @@ git-repository-url = "https://github.com/sunface/rust-by-practice" edit-url-template = "https://github.com/sunface/rust-by-practice/edit/master/zh-CN/{path}" [rust] -edition = "2021" +edition = "2018" diff --git a/zh-CN/theme/index.hbs b/zh-CN/theme/index1.hbs similarity index 69% rename from zh-CN/theme/index.hbs rename to zh-CN/theme/index1.hbs index ac76bff..bee88ce 100644 --- a/zh-CN/theme/index.hbs +++ b/zh-CN/theme/index1.hbs @@ -1,59 +1,62 @@ - - - - {{ title }} - {{#if is_print }} - - {{/if}} - {{#if base_url}} - - {{/if}} + + + + + {{ title }} + {{#if is_print }} + + {{/if}} + {{#if base_url}} + + {{/if}} - - {{> head}} + + {{> head}} - - - + + + - {{#if favicon_svg}} - - {{/if}} - {{#if favicon_png}} - - {{/if}} - - - - {{#if print_enable}} - - {{/if}} + {{#if favicon_svg}} + + {{/if}} + {{#if favicon_png}} + + {{/if}} + + + + {{#if print_enable}} + + {{/if}} - - - {{#if copy_fonts}} - - {{/if}} + + + {{#if copy_fonts}} + + {{/if}} - - - - + + + + - - {{#each additional_css}} - - {{/each}} + + {{#each additional_css}} + + {{/each}} - {{#if mathjax_support}} - - - {{/if}} - - + {{#if mathjax_support}} + + + {{/if}} + + +
- +
@@ -146,10 +149,14 @@