Skip to content

Commit 776dedd

Browse files
fix: img problem
1 parent 32f44d0 commit 776dedd

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

app/[locale]/blog/posts.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const getPost = async (slug: string) => {
4343
.process(matterResult.content)
4444
const contentHtml = processedContent
4545
.toString()
46-
.replace('<img src="image', `<img src="/images/${slug}/image`)
46+
.replaceAll('<img src="image', `<img src="/images/${slug}/image`)
4747

4848
return {
4949
slug,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

blog/posts/dev-note-3/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ tags: ['开发日志']
1919

2020
现有的 WebGAL Terre 编辑器主页将添加新的功能,用于管理模板,并可进入模板编辑器。
2121

22-
![Dashboard](img.png)
22+
![Dashboard](image1.png)
2323

2424
在模板编辑器中,用户将可以选择自己想要编辑的组件,并修改和添加我们支持编辑的属性。这些属性可能包括字体颜色、字体大小、背景颜色或图片、变换、内外边距等丰富的自定义样式属性。并且,还可以根据鼠标指针悬浮或按下组件的状态,切换对应的样式。
2525

26-
![Template Editor](img_1.png)
26+
![Template Editor](image2.png)
2727

2828
任何样式文件的修改将会立刻反映在编辑区域上方的预览区域中。这是 WebGAL 项目一贯以来的风格,我们理解创作者总是希望自己的修改结果能够立刻得到反馈,这也是我们一直以来为提升创作者获得感努力的方向。
2929

3030
## 将会一同发布的其他改进
3131

3232
WebGAL 的资源管理组件现已完全重构,用户将可以在编辑器内完成更多操作,比如创建新的 JSON 文件用于编写自定义动画。
3333

34-
![Assets1](img_2.png)
34+
![Assets1](image3.png)
3535

36-
![Assets2](img_3.png)
36+
![Assets2](image4.png)
3737

3838
由于我们完全重构了资源管理组件,现在场景文件管理也变得更加自由,可以按照文件夹来区分不同用途的场景文件。
3939

40-
![Scene](img_4.png)
40+
![Scene](image5.png)
4141

4242
## 致谢
4343

0 commit comments

Comments
 (0)