mirror of
https://github.com/LukeHagar/parke.dev.git
synced 2025-12-06 04:20:34 +00:00
Update site URL and refactor post links from '/blog/' to '/posts/' for consistency across the application.
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user