diff --git a/astro.config.mjs b/astro.config.mjs index b9c871620..ce9747e9a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -10,7 +10,7 @@ export default defineConfig({ site: 'https://roadmap.sh', markdown: { shikiConfig: { - theme: 'dracula' + theme: 'dracula', }, rehypePlugins: [ [ @@ -21,6 +21,9 @@ export default defineConfig({ ], ], }, + build: { + format: 'file', + }, integrations: [ tailwind({ config: { diff --git a/sitemap.mjs b/sitemap.mjs index d5c678ca3..c2c4bfa72 100644 --- a/sitemap.mjs +++ b/sitemap.mjs @@ -7,21 +7,21 @@ async function getRoadmapIds() { export function shouldIndexPage(page) { return ![ - 'https://roadmap.sh/404/', - 'https://roadmap.sh/terms/', - 'https://roadmap.sh/privacy/', - 'https://roadmap.sh/pdfs/', + 'https://roadmap.sh/404', + 'https://roadmap.sh/terms', + 'https://roadmap.sh/privacy', + 'https://roadmap.sh/pdfs', ].includes(page); } export async function serializeSitemap(item) { const highPriorityPages = [ - 'https://roadmap.sh/', - 'https://roadmap.sh/about/', - 'https://roadmap.sh/roadmaps/', - 'https://roadmap.sh/guides/', - 'https://roadmap.sh/videos/', - ...(await getRoadmapIds()).map((id) => `https://roadmap.sh/${id}/`), + 'https://roadmap.sh', + 'https://roadmap.sh/about', + 'https://roadmap.sh/roadmaps', + 'https://roadmap.sh/guides', + 'https://roadmap.sh/videos', + ...(await getRoadmapIds()).flatMap((id) => [`https://roadmap.sh/${id}`, `https://roadmap.sh/${id}/topics`]), ]; // Roadmaps and other high priority pages @@ -37,7 +37,7 @@ export async function serializeSitemap(item) { } // Guide and video pages - if (item.url.startsWith('https://roadmap.sh/guides/') || item.url.startsWith('https://roadmap.sh/videos/')) { + if (item.url.startsWith('https://roadmap.sh/guides') || item.url.startsWith('https://roadmap.sh/videos')) { return { ...item, // @ts-ignore diff --git a/src/components/Breadcrumbs.astro b/src/components/Breadcrumbs.astro index d4a99cfdc..38748e947 100644 --- a/src/components/Breadcrumbs.astro +++ b/src/components/Breadcrumbs.astro @@ -10,28 +10,35 @@ const { breadcrumbs, roadmapId } = Astro.props; ---
+
RoadmapsRoadmaps GuidesGuides VideosVideos AboutAbout
- Community created roadmaps, articles, resources and journeys to help - you choose your path and grow in your career. + Community created roadmaps, articles, resources and journeys to help you choose your path and grow in your + career.
- The leading DevOps resource for Kubernetes, cloud-native computing, - and the latest in at-scale development, deployment, and management. + The leading DevOps resource for Kubernetes, cloud-native computing, and the latest in at-scale development, + deployment, and management.
diff --git a/src/components/GridRoadmapItem.astro b/src/components/GridRoadmapItem.astro index 624eff270..d7ffb1542 100644 --- a/src/components/GridRoadmapItem.astro +++ b/src/components/GridRoadmapItem.astro @@ -10,7 +10,7 @@ const frontmatter = roadmap.frontmatter; --- {frontmatter.title} diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro index 196587125..af7f6f1d0 100644 --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -12,18 +12,18 @@ import Icon from './Icon.astro'; -