Skip to content

Commit 4e60b0f

Browse files
committed
feat: remove language switcher and use Chinese only
Changes: - Remove Chinese/English language switcher from header - Set default language to zh-CN - Update site title to Chinese: 应用工程文档 - Update page title format to use Chinese - Simplify header layout by removing navigation links
1 parent 3908152 commit 4e60b0f

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
title: ModelEngine Application Engineering Documentation
2-
description: Documentation for ModelEngine Application Engineering
1+
title: 应用工程文档
2+
description: ModelEngine 应用工程文档
33
theme: jekyll-theme-cayman
44
show_downloads: false
55

_layouts/default.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html>
2-
<html lang="{{ page.lang | default: 'en' }}">
2+
<html lang="zh-CN">
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
6+
<title>{% if page.title %}{{ page.title }} - {% endif %}应用工程文档</title>
77
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
88
{% if page.toc %}
99
<link rel="stylesheet" href="{{ '/assets/css/toc.css' | relative_url }}">
@@ -12,11 +12,7 @@
1212
<body>
1313
<header class="site-header">
1414
<div class="container">
15-
<a class="site-title" href="{{ '/' | relative_url }}">{{ site.title }}</a>
16-
<nav class="site-nav">
17-
<a href="{{ '/docs/zh_CN/' | relative_url }}" class="nav-link">中文</a>
18-
<a href="{{ '/docs/en_US/' | relative_url }}" class="nav-link">English</a>
19-
</nav>
15+
<a class="site-title" href="{{ '/docs/zh_CN/' | relative_url }}">应用工程文档</a>
2016
</div>
2117
</header>
2218

0 commit comments

Comments
 (0)