Skip to content

Commit 6139ab0

Browse files
committed
update contributing guidelines
1 parent c7aca74 commit 6139ab0

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

content/contributing.smd

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Zig 中文社区是一个开放的组织,我们致力于推广 Zig 在中文
2121
---
2222
.title = "文章标题",
2323
.date = @date("2025-06-05T16:00:00+0800"),
24-
.author = "刘家财",
24+
.author = "Your Name",
2525
.layout = "post.shtml",
2626
.draft = false,
2727
.custom = {
@@ -31,6 +31,17 @@ Zig 中文社区是一个开放的组织,我们致力于推广 Zig 在中文
3131
---
3232
```
3333

34+
如果需要插入图片,请将图片放在 `assets/images` 目录下,然后在文章中通过下面方式引用,例如:
35+
36+
```
37+
[Demo]($image.siteAsset('images/demo.webp'))
38+
```
39+
40+
图片格式优先选择 `webp`,其次是 `svg`。这样可以在保证图片质量的同时,减小图片体积,提高网站加载速度。可以使用下面的在线工具将图片转换为 `webp` 格式:
41+
- [WebP Converter - FreeConvert.com](https://www.freeconvert.com/webp-converter)
42+
- [Getting Started  |  WebP  |  Google for Developers](https://developers.google.com/speed/webp/docs/using)
43+
44+
3445
## [本地预览]($heading.id('local-preview'))
3546

3647
1. 安装 `zine`,方法见 [Quick Start](https://zine-ssg.io/quickstart/),

0 commit comments

Comments
 (0)