Skip to content

Commit 0d95e39

Browse files
committed
fix: post aigc
1 parent eca2432 commit 0d95e39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aigc/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function loadPosts() {
3838
for (const filename of postFiles) {
3939
try {
4040
// Use absolute path from root for GitHub Pages compatibility
41-
const response = await fetch(`/aigc/posts/${filename}.md`);
41+
const response = await fetch(`./posts/${filename}.md`);
4242
if (!response.ok) continue;
4343

4444
const content = await response.text();
@@ -144,7 +144,7 @@ document.addEventListener('DOMContentLoaded', async () => {
144144

145145
if (allPosts.length === 0) {
146146
const loadingEl = document.getElementById('loading');
147-
loadingEl.innerText = 'No posts found. Create markdown files in ./posts/ directory.';
147+
loadingEl.innerText = 'No posts found.';
148148
loadingEl.classList.remove('hidden');
149149
return;
150150
}

0 commit comments

Comments
 (0)