From 44b3b17faccc53d6a766912e65f59165a4d00733 Mon Sep 17 00:00:00 2001 From: Weaxs <459312872@qq.com> Date: Wed, 20 Mar 2024 11:52:16 +0800 Subject: [PATCH] translate thumbnails, multi-author, samples,icons, thumbnail_sample to zh-cn --- exampleSite/content/samples/_index.zh-cn.md | 20 +++ .../content/samples/icons/index.zh-cn.md | 116 ++++++++++++++++++ .../samples/thumbnail_sample/index.zh-cn.md | 40 ++++++ 3 files changed, 176 insertions(+) create mode 100644 exampleSite/content/samples/_index.zh-cn.md create mode 100644 exampleSite/content/samples/icons/index.zh-cn.md create mode 100644 exampleSite/content/samples/thumbnail_sample/index.zh-cn.md diff --git a/exampleSite/content/samples/_index.zh-cn.md b/exampleSite/content/samples/_index.zh-cn.md new file mode 100644 index 00000000..20d81083 --- /dev/null +++ b/exampleSite/content/samples/_index.zh-cn.md @@ -0,0 +1,20 @@ +--- +title: "Samples" +description: "See what's possible with Blowfish." + +cascade: + showEdit: false + showSummary: false + hideFeatureImage: true +--- + +{{< lead >}} +Blowfish 让你的内容栩栩如生。 :heart_eyes: +{{< /lead >}} + +本节包含一些演示页面,展示了Blowfish如何呈现不同类型的内容。你还可以看到一个[分类列表]({{< ref "tags" >}})页面的示例。 + + +_**旁注:** 这个页面只是一个标准的Blowfish文章列表,并且已经配置了Hugo来生成一个`samples`内容类型并显示文章摘要。_ + +--- diff --git a/exampleSite/content/samples/icons/index.zh-cn.md b/exampleSite/content/samples/icons/index.zh-cn.md new file mode 100644 index 00000000..c956e657 --- /dev/null +++ b/exampleSite/content/samples/icons/index.zh-cn.md @@ -0,0 +1,116 @@ +--- +title: "图标" +date: 2020-08-14 +lastmod: 2022-03-09 +draft: false +description: "Blowfish 支持的图标。" +slug: "icons" +tags: ["图标", "示例", "短代码"] +type: 'sample' +--- + +Blowfish 内置了许多 [FontAwesome 6](https://fontawesome.com/icons) 中的图标。你可以使用 [图标部分]({{< ref "docs/partials#icon" >}})或者[图标短代码]({{< ref "docs/shortcodes#icon" >}})将这些图标包含在你的网站中。 + +当然,Blowfish 完全支持自定义图标。只需要将自己的 SVG 文件放在 `assets/icons/` 目录下即可。图标目录中的任何图标可以在整个主题中使用。为了实现自动填充颜色,每个 SVG 图标源码中必须添加 `fill="currentColor"` 属性。 + +下面是所有的内置图标及其名称。 + +| 图标名称 | 预览 | +|----------------------|-----------------------------------| +| amazon | {{< icon amazon >}} | +| apple | {{< icon apple >}} | +| bars | {{< icon bars >}} | +| bell | {{< icon bell >}} | +| blogger | {{< icon blogger >}} | +| bluesky | {{< icon bluesky >}} | +| bomb | {{< icon bomb >}} | +| bug | {{< icon bug >}} | +| check | {{< icon check >}} | +| circle-info | {{< icon circle-info >}} | +| code | {{< icon code>}} | +| codepen | {{< icon codepen >}} | +| comment | {{< icon comment >}} | +| dev | {{< icon dev >}} | +| discourse | {{< icon discourse >}} | +| docker | {{< icon docker >}} | +| download | {{< icon download >}} | +| dribbble | {{< icon dribbble >}} | +| edit | {{< icon edit >}} | +| email | {{< icon email >}} | +| envelope | {{< icon envelope >}} | +| expand | {{< icon expand >}} | +| eye | {{< icon eye >}} | +| facebook | {{< icon facebook >}} | +| fire | {{< icon fire >}} | +| flickr | {{< icon flickr >}} | +| fork | {{< icon fork >}} | +| foursquare | {{< icon foursquare >}} | +| ghost | {{< icon ghost >}} | +| github | {{< icon github >}} | +| gitlab | {{< icon gitlab >}} | +| globe | {{< icon globe >}} | +| goodreads | {{< icon goodreads >}} | +| google | {{< icon google >}} | +| graduation-cap | {{< icon graduation-cap >}} | +| hackernews | {{< icon hackernews >}} | +| hashnode | {{< icon hashnode >}} | +| heart-empty | {{< icon heart-empty >}} | +| heart | {{< icon heart >}} | +| image | {{< icon image >}} | +| instagram | {{< icon instagram >}} | +| keybase | {{< icon keybase >}} | +| kickstarter | {{< icon kickstarter >}} | +| ko-fi | {{< icon ko-fi >}} | +| language | {{< icon language >}} | +| lastfm | {{< icon lastfm >}} | +| lightbulb | {{< icon lightbulb >}} | +| link | {{< icon link >}} | +| linkedin | {{< icon linkedin >}} | +| list | {{< icon list >}} | +| location-dot | {{< icon location-dot >}} | +| lock | {{< icon lock >}} | +| mastodon | {{< icon mastodon >}} | +| medium | {{< icon medium >}} | +| microsoft | {{< icon microsoft >}} | +| moon | {{< icon moon >}} | +| mug-hot | {{< icon mug-hot >}} | +| music | {{< icon music >}} | +| orcid | {{< icon orcid >}} | +| patreon | {{< icon patreon >}} | +| paypal | {{< icon paypal >}} | +| pencil | {{< icon pencil >}} | +| pgpkey | {{< icon pgpkey >}} | +| phone | {{< icon phone >}} | +| pinterest | {{< icon pinterest >}} | +| poo | {{< icon poo >}} | +| reddit | {{< icon reddit >}} | +| researchgate | {{< icon researchgate >}} | +| rss | {{< icon rss >}} | +| rss-square | {{< icon rss-square >}} | +| scale-balanced | {{< icon scale-balanced >}} | +| search | {{< icon search >}} | +| shield | {{< icon shield >}} | +| skull-crossbones | {{< icon skull-crossbones >}} | +| slack | {{< icon slack >}} | +| snapchat | {{< icon snapchat >}} | +| soundcloud | {{< icon soundcloud >}} | +| stack-overflow | {{< icon stack-overflow >}} | +| star | {{< icon star >}} | +| steam | {{< icon steam >}} | +| stripe | {{< icon stripe >}} | +| substack | {{< icon substack >}} | +| sun | {{< icon sun >}} | +| tag | {{< icon tag >}} | +| telegram | {{< icon telegram >}} | +| threads | {{< icon threads >}} | +| tiktok | {{< icon tiktok >}} | +| triangle-exclamation | {{< icon triangle-exclamation >}} | +| tumblr | {{< icon tumblr >}} | +| twitch | {{< icon twitch >}} | +| twitter | {{< icon twitter >}} | +| wand-magic-sparkles | {{< icon wand-magic-sparkles >}} | +| whatsapp | {{< icon whatsapp >}} | +| x-twitter | {{< icon x-twitter >}} | +| xing | {{< icon xing >}} | +| xmark | {{< icon xmark >}} | +| youtube | {{< icon youtube >}} | diff --git a/exampleSite/content/samples/thumbnail_sample/index.zh-cn.md b/exampleSite/content/samples/thumbnail_sample/index.zh-cn.md new file mode 100644 index 00000000..63dce5de --- /dev/null +++ b/exampleSite/content/samples/thumbnail_sample/index.zh-cn.md @@ -0,0 +1,40 @@ +--- +title: "缩略图" +date: 2022-09-26 +draft: false +description: "在你的文章中开启缩略图。" +slug: "thumbnail_sample" +tags: ["thumbnail", "sample"] +summary: "一个展示如何在你的文章中开始使用缩略图的快速示例。" +type: 'sample' +--- + +这是一个在你的文章使用缩略图的快速示例。 + +如果你的文章目录看起来像这样: +If your average directory for an article looks like this: + +```shell +content +└── awesome_article.md +``` + +你需要将他从单个 markdown 文件更改为一个同名文件夹。创建一个与文章同名的目录,并在此目录中添加一个 `index.md` 文件。目录结构如下所示: + +```shell +content +└── awesome_article + └── featured.png +``` + +在文件夹内部,你可以添加一个 `feature*` 开头的特征图片(支持几乎所有格式,但推荐使用 `.png` 或 `.jpg`)。目录结构如下所示: + +```shell +content +└── awesome_article + ├── index.md + └── featured.png +``` + +这将告诉 Blowfish 这篇文章有一个特征图片,这个图片可以在网站作为缩略图使用,也可以用于社交平台上的 oEmbed 卡片。 +作为一个示例,你可以尝试将这篇文章的 URL 复制粘贴到一个可以显示 oEmbeds 的平台,如 Twitter、WhatsApp、Telegram等等。