Merge pull request #1325 from Weaxs/translations-v1

🎏 Blowfish translation (zh-cn)
This commit is contained in:
Nuno Coração 2024-03-12 09:50:42 +00:00 committed by GitHub
commit 6c47f51936
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 76 additions and 14 deletions

View file

@ -1,21 +1,21 @@
languageCode = "zh-cn" languageCode = "zh-cn"
languageName = "中国人" languageName = "中文(简体)"
weight = 2 weight = 2
title = "Blowfish" title = "Blowfish"
[params] [params]
displayName = "中国人" displayName = "中文(简体)"
isoCode = "zh-cn" isoCode = "zh-cn"
rtl = false rtl = false
dateFormat = "2 January 2006" dateFormat = "2006-01-02"
logo = "img/blowfish_logo_transparent.png" logo = "img/blowfish_logo_transparent.png"
description = "A powerful, lightweight theme for Hugo." description = "一个强大、轻量级的 Hugo 主题。"
[author] [author]
name = "Blowfish" name = "Blowfish"
image = "img/blowfish_logo.png" image = "img/blowfish_logo.png"
headline = "A powerful, lightweight theme for Hugo." headline = "一个强大、轻量级的 Hugo 主题。"
bio = "A powerful, lightweight theme for Hugo." bio = "一个强大、轻量级的 Hugo 主题。"
links = [ links = [
{ x-twitter = "https://twitter.com/burufugu" }, { x-twitter = "https://twitter.com/burufugu" },
{ github = "https://github.com/nunocoracao/blowfish" }, { github = "https://github.com/nunocoracao/blowfish" },

View file

@ -11,7 +11,7 @@
# ordered by weight from lowest to highest. # ordered by weight from lowest to highest.
[[main]] [[main]]
name = "Docs" name = "文档"
pageRef = "docs" pageRef = "docs"
weight = 10 weight = 10
@ -21,29 +21,29 @@
weight = 15 weight = 15
[[main]] [[main]]
name = "Examples" name = "示例"
weight = 20 weight = 20
[[main]] [[main]]
name = "Samples" name = "功能示例"
parent = "Examples" parent = "Examples"
pageRef = "samples" pageRef = "samples"
weight = 16 weight = 16
[[main]] [[main]]
name = "Showcase" name = "模板示例"
parent = "Examples" parent = "Examples"
pageRef = "examples" pageRef = "examples"
weight = 30 weight = 30
[[main]] [[main]]
name = "Recipes" name = "部署指南"
parent = "Examples" parent = "Examples"
pageRef = "guides" pageRef = "guides"
weight = 40 weight = 40
[[main]] [[main]]
name = "Users" name = "使用者"
pageRef = "users" pageRef = "users"
weight = 90 weight = 90
@ -81,11 +81,11 @@
# the copyright notice. Configure as per the main menu above. # the copyright notice. Configure as per the main menu above.
[[footer]] [[footer]]
name = "Tags" name = "标签"
pageRef = "tags" pageRef = "tags"
weight = 10 weight = 10
[[footer]] [[footer]]
name = "Authors" name = "作者"
pageRef = "authors" pageRef = "authors"
weight = 20 weight = 20

View file

@ -0,0 +1,29 @@
---
title: "欢迎来到 Blowfish! :tada:"
description: "此页面是使用 Hugo 的 Blowfish 主题搭建的"
---
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
<span class="flex items-center ltr:pr-3 rtl:pl-3 text-primary-400">
{{< icon "triangle-exclamation" >}}
</span>
<span class="flex items-center justify-between grow dark:text-neutral-300">
<span class="prose dark:prose-invert"> 这是 <code id="layout">background</code> 的样式示例。</span>
<button
id="switch-layout-button"
class="px-4 !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
>
Switch layout &orarr;
</button>
</span>
</div>
```node
npx blowfish-tools
```
{{< youtubeLite id="SgXhGb-7QbU" label="Blowfish-tools demo" >}}

View file

View file

@ -0,0 +1,8 @@
---
title: 标签
---
Blowfish 支持基于 Hugo 的所有分类方法。同时,当前的标签预览页也支持展示自定义内容。
在这里可以为每个分类添加额外的描述信息。查看下面的[高级标签]({{< ref "advanced" >}})页面,了解更多。
---

View file

@ -0,0 +1,25 @@
---
title: "Users"
date: 2020-08-14
draft: false
description: "Some real-life Blowfish examples."
slug: "users"
tags: ["users", "sample"]
showDate: false
showAuthor: false
showReadingTime: false
showEdit: false
layoutBackgroundHeaderSpace: false
cardViewScreenWidth: true
---
使用 Blowfish 构建的客户案例。点击[这里](/users/users.json)查看完整列表。
{{< alert >}}
**您是 Blowfish 用户 ** 请在这个列表中添加您的站点, [提交 PR](https://github.com/nunocoracao/blowfish/blob/main/exampleSite/content/users/users.json).
{{</ alert >}}
</BR>