aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2025-06-14 14:01:42 +0300
committerValentin Popov <valentin@popov.link>2025-06-14 14:01:42 +0300
commit9777d996d172755472dd8127ff9b7a3c579cf454 (patch)
treef8f2cae618f6508750b79973e9e911a582166953 /src/components
parent1c15151ef59d3a0e7f4bb03a65bcd1970f3e1c07 (diff)
downloadpopov.link-9777d996d172755472dd8127ff9b7a3c579cf454.tar.xz
popov.link-9777d996d172755472dd8127ff9b7a3c579cf454.zip
refactor: enhance PostElement structure and update blog schema
- Wrapped the post link in an <article> tag for improved semantic structure. - Updated blogSchema to include posts for better structured data representation. - Adjusted the blog index to utilize the new posts parameter for enhanced SEO.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PostElement.astro18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/components/PostElement.astro b/src/components/PostElement.astro
index 2263e92..85320ee 100644
--- a/src/components/PostElement.astro
+++ b/src/components/PostElement.astro
@@ -25,12 +25,14 @@ const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"
</style>
<li>
- <a href={`/blog/${post.slug}`} lang={post.data.lang}>{post.data.title}</a>
- <div>
- <small>
- <time datetime={post.data.pubDate.toISOString()} lang="en">{formattedDate}</time>
- <span>•</span>
- <span>{remarkPluginFrontmatter.minutesRead}</span>
- </small>
- </div>
+ <article>
+ <a href={`/blog/${post.slug}`} lang={post.data.lang}>{post.data.title}</a>
+ <div>
+ <small>
+ <time datetime={post.data.pubDate.toISOString()} lang="en">{formattedDate}</time>
+ <span>•</span>
+ <span>{remarkPluginFrontmatter.minutesRead}</span>
+ </small>
+ </div>
+ </article>
</li>