Skip to content

Commit

Permalink
切换默认语言为中文
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiichen committed Oct 11, 2023
1 parent 46b3bfb commit 4df36c7
Show file tree
Hide file tree
Showing 60 changed files with 1,221 additions and 1,220 deletions.
11 changes: 6 additions & 5 deletions src/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ export default defineUserConfig({
base: "/",

locales: {

"/": {
lang: "en-US",
title: "Blog Demo",
description: "A blog demo for vuepress-theme-hope",
},
"/zh/": {
lang: "zh-CN",
title: "博客演示",
description: "vuepress-theme-hope 的博客演示",
},
"/en-US": {
lang: "en-US",
title: "Blog Demo",
description: "A blog demo for vuepress-theme-hope",
},
},

theme,
Expand Down
50 changes: 25 additions & 25 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,47 @@
home: true
layout: BlogHome
icon: home
title: Blog Home
title: 博客主页
heroImage: /logo.svg
heroText: The name of your blog
tagline: You can put your slogan here
heroText: Chi
heroFullScreen: true
tagline: 三十年河东三十年河西
projects:
- icon: project
name: project name
desc: project detailed description
link: https://your.project.link
name: DragonOS
desc: Rust开发的服务器操作系统
link: https://github.com/DragonOS-Community/DragonOS

- icon: link
name: link name
desc: link detailed description
link: https://link.address
name: 链接名称
desc: 链接详细描述
link: https://链接地址

- icon: book
name: book name
desc: Detailed description of the book
link: https://link.to.your.book
name: 书籍名称
desc: 书籍详细描述
link: https://你的书籍链接

- icon: article
name: article name
desc: Detailed description of the article
link: https://link.to.your.article
name: 文章名称
desc: 文章详细描述
link: https://你的文章链接

- icon: friend
name: friend name
desc: Detailed description of friend
link: https://link.to.your.friend
name: 伙伴名称
desc: 伙伴详细介绍
link: https://你的伙伴链接

- icon: /logo.svg
name: custom item
desc: Detailed description of this custom item
link: https://link.to.your.friend
name: 自定义项目
desc: 自定义详细介绍
link: https://你的自定义链接

footer: customize your footer text
footer: 自定义你的页脚文字
---

This is a blog home page demo.
这是一个博客主页的案例。

To use this layout, you should set both `layout: BlogHome` and `home: true` in the page front matter.
要使用此布局,你应该在页面前端设置 `layout: BlogHome` `home: true`

For related configuration docs, please see [blog homepage](https://theme-hope.vuejs.press/guide/blog/home/).
相关配置文档请见 [博客主页](https://theme-hope.vuejs.press/zh/guide/blog/home/)
14 changes: 7 additions & 7 deletions src/demo/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: Features Demo
title: 主要功能与配置演示
index: false
icon: discover
category:
- Guide
- 使用指南
---

## Catalog
## 目录

- [Markdown Enhance](markdown.md)
- [Markdown 展示](markdown.md)

- [Page Config](page.md)
- [页面展示](page.md)

- [Function Disable](disable.md)
- [禁用展示](disable.md)

- [Encryption Demo](encrypt.md)
- [加密展示](encrypt.md)
32 changes: 16 additions & 16 deletions src/demo/disable.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: Disabling layout and features
title: 布局与功能禁用
icon: config
order: 3
category:
- Guide
- 使用指南
tag:
- disable
- 禁用

navbar: false
sidebar: false
Expand All @@ -23,20 +23,20 @@ footer: false
backtotop: false
---

You can disable some function and layout on the page by setting the Frontmatter of the page.
你可以通过设置页面的 Frontmatter,在页面禁用功能与布局。

<!-- more -->

This page is an demo that disables the following features:
本页面就是一个示例,禁用了如下功能:

- Navbar
- Sidebar
- Breadcrumb
- Page information
- Contributors
- Edit link
- Update time
- Prev/Next link
- Comment
- Footer
- Back to top button
- 导航栏
- 侧边栏
- 路径导航
- 页面信息
- 贡献者
- 编辑此页链接
- 更新时间
- 上一篇/下一篇 链接
- 评论
- 页脚
- 返回顶部按钮
12 changes: 6 additions & 6 deletions src/demo/encrypt.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
icon: lock
category:
- Guide
- 使用指南
tag:
- encryption
- 文章加密
---

# Encryption Article
# 密码加密的文章

The actual article content.
实际的文章内容。

Paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text paragraph 1 text.
段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字段落 1 文字。

Paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text paragraph 2 text.
段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字段落 2 文字。
Loading

0 comments on commit 4df36c7

Please sign in to comment.