Update site URL and refactor post links from '/blog/' to '/posts/' for consistency across the application.

This commit is contained in:
Luke Hagar
2025-11-18 04:51:20 +00:00
parent c549bdf136
commit 839b8ff125
3 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ import expressiveCode from "astro-expressive-code";
// https://astro.build/config
export default defineConfig({
site: "https://example.com",
site: "https://blog.parke.dev",
integrations: [
// https://docs.astro.build/en/guides/integrations-guide/sitemap/
sitemap(),

View File

@@ -55,7 +55,7 @@ const socialLinksWithIcons = socialLinks.map((link) => ({
<!-- The Top Post -->
<a
class="card border border-surface-100-900 hover:preset-tonal overflow-hidden"
href={`/blog/${posts[0].id}/`}
href={`/posts/${posts[0].id}/`}
>
{
posts[0].data.heroImage && (
@@ -81,7 +81,7 @@ const socialLinksWithIcons = socialLinks.map((link) => ({
posts.slice(1, 4).map((post) => (
<a
class="card border border-surface-100-900 hover:preset-tonal overflow-hidden"
href={`/blog/${post.id}/`}
href={`/posts/${post.id}/`}
>
<article
class={`grid grid-cols-1 ${post.data.heroImage ? "sm:grid-cols-[280px_1fr]" : undefined}`}
@@ -117,7 +117,7 @@ const socialLinksWithIcons = socialLinks.map((link) => ({
posts.slice(1, 5).map((post) => (
<a
class="card border border-surface-900-100 hover:bg-surface-900-100 overflow-hidden"
href={`/blog/${post.id}/`}
href={`/posts/${post.id}/`}
>
{post.data.heroImage && (
<img

View File

@@ -41,7 +41,7 @@ const posts = (await getCollection("blog")).sort(
{
posts.map((post) => (
<a
href={`/blog/${post.id}/`}
href={`/posts/${post.id}/`}
class="card border border-surface-100-900 hover:preset-tonal overflow-hidden"
>
{post.data.heroImage && (