-
- {pinnedPosts.map(post => (
-
- - - {post.data.title} - - - - ))} -
-
- {posts.map(post => (
- // Single Post
-
- - {/* Post Title */} - {post.data.title} - {/* Post Date */} - - - ))} -
diff --git a/astro.config.ts b/astro.config.ts index e45819c..24f9750 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -35,6 +35,7 @@ const imageDomain = new URL(themeConfig.preload.imageHostURL as string).hostname export default defineConfig({ site: url, base: '/', + trailingSlash: 'always', prefetch: { prefetchAll: true, defaultStrategy: 'viewport', diff --git a/src/components/Footer.astro b/src/components/Footer.astro index a01e82e..b00131b 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -9,9 +9,9 @@ const { class: className } = Astro.props const { author } = themeConfig.site const { startYear, - linkA: { name: linkAName, url: linkAUrl }, - linkB: { name: linkBName, url: linkBUrl }, - linkC: { name: linkCName, url: linkCUrl }, + linkA: { name: nameA, url: urlA }, + linkB: { name: nameB, url: urlB }, + linkC: { name: nameC, url: urlC }, } = themeConfig.footer const currentYear = new Date().getFullYear() @@ -27,13 +27,15 @@ const year = Number(startYear) === currentYear ]} >
- {linkAName} / - {linkBName} / - {linkCName} + {nameA} / + {nameB} / + {nameC}
+Powered by Astro and Retypeset
+© {year} {author}
diff --git a/src/components/MainHeader.astro b/src/components/MainHeader.astro index 9df0368..f57d944 100644 --- a/src/components/MainHeader.astro +++ b/src/components/MainHeader.astro @@ -19,7 +19,7 @@ const marginBottom = { lg="fixed" >Retypeset is a static blog theme based on the Astro framework, inspired by Typography. Retypeset establishes a new visual standard and reimagines the layout of all pages, offering a reading experience similar to paper books, reviving the beauty of typography. Details in every sight, elegance in every space.
+