Skip to content

Commit 051e7bc

Browse files
committed
fix(blog): use absolute paths for video src in Astro
1 parent 44222ee commit 051e7bc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scripts/convert-gif.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ done < <(find public/img -name '*.gif' -print0)
3434

3535
echo "Updating markdown files..."
3636
find src/content -name '*.md' -exec perl -i -pe '
37-
s/!\[([^\]]*)\]\(([^)]*?)\.gif\)/<video autoplay loop muted playsinline style="max-width:100%">\n <source src="$2.mp4" type="video\/mp4">\n<\/video>/g
37+
s/!\[([^\]]*)\]\([^)]*public(\/img\/[^)]*?)\.gif\)/<video autoplay loop muted playsinline style="max-width:100%">\n <source src="$2.mp4" type="video\/mp4">\n<\/video>/g
3838
' {} \;
3939

4040
echo "Done!"

src/content/blog-en/sim.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ However, its core feature—Copilot (LLM-based workflow generation)—has a stru
3333
---
3434

3535
<video autoplay loop muted playsinline style="max-width:100%">
36-
<source src="../../../public/img/sim/action1.mp4" type="video/mp4">
36+
<source src="/img/sim/action1.mp4" type="video/mp4">
3737
</video>
3838

3939

@@ -180,7 +180,7 @@ The debugging experience is pretty impressive.
180180
Even when it’s hard to find what needs to be fixed—a common issue with no-code tools—the Fix in Copilot feature resolves problems automatically. You click a button, and the LLM debugs and repairs the workflow on its own. I find this part especially compelling.
181181

182182
<video autoplay loop muted playsinline style="max-width:100%">
183-
<source src="../../../public/img/sim/action2.mp4" type="video/mp4">
183+
<source src="/img/sim/action2.mp4" type="video/mp4">
184184
</video>
185185

186186
---

src/content/blog/sim.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ tags:
3232
---
3333

3434
<video autoplay loop muted playsinline style="max-width:100%">
35-
<source src="../../../public/img/sim/action1.mp4" type="video/mp4">
35+
<source src="/img/sim/action1.mp4" type="video/mp4">
3636
</video>
3737

3838

@@ -181,7 +181,7 @@ OCR도 지원해 이미지 문서 처리도 가능하다고 한다. RAG 시스
181181
노코드 툴 특성상 수정 포인트를 찾기 어려운 상황에서도 Fix in Copilot 기능이 자동으로 문제를 해결해준다. 버튼을 누르고 LLM이 알아서 디버깅해서 워크플로우를 고친다. 이 부분은 참 매력적이라고 생각한다.
182182

183183
<video autoplay loop muted playsinline style="max-width:100%">
184-
<source src="../../../public/img/sim/action2.mp4" type="video/mp4">
184+
<source src="/img/sim/action2.mp4" type="video/mp4">
185185
</video>
186186

187187
---

0 commit comments

Comments
 (0)