Skip to content

Commit 6837399

Browse files
committed
Fix the issue with empty blog
1 parent 1483f26 commit 6837399

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/.vitepress/theme/components/BlogIndex.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function getDateTime(time: number) {
1414
post.date.string
1515
}}</time>
1616
<h2 class="title">
17-
<a :href="post.url.substring(1)">{{ post.title }}</a>
17+
<a :href="post.url">{{ post.title }}</a>
1818
</h2>
1919
</article>
2020
</li>

docs/_data/blog.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Post {
1212
declare const data: Post[]
1313
export { data }
1414

15-
export default createContentLoader('blog/*.md', {
15+
export default createContentLoader('docs/blog/*.md', {
1616
// excerpt: true,
1717
transform(raw): Post[] {
1818
return raw

0 commit comments

Comments
 (0)